summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorartem.popov <artem.popov@samsung.com>2014-11-05 00:00:45 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-11-05 00:15:52 +0100
commita5e3e0d0d44f51b2c28a89413fdddf552fe636f3 (patch)
treea5882b5a071dc54193487a5bbb55e06ec0161ef8
parent704c448141888d18dde8a73b727856a77edcc189 (diff)
downloadefl-a5e3e0d0d44f51b2c28a89413fdddf552fe636f3.tar.gz
edje: fix edje_object_part_text_item_list_get and edje_object_part_text_item_geometry_get
Summary: There is copy-paste bug, when _anchors_get works in the same way like _items_get. edje_object_part_text_item_list_get and edje_object_part_text_item_geometry_get didn't work. @fix Reviewers: seoz, Hermet, raster, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1641 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/edje/edje_entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index be9f824a18..61d38b8e90 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -2961,7 +2961,7 @@ _edje_entry_item_geometry_get(Edje_Real_Part *rp, const char *item, Evas_Coord *
EINA_LIST_FOREACH(en->anchors, l, an)
{
const char *n = an->name;
- if (an->item) continue;
+ if (!an->item) continue;
if (!n) n = "";
if (!strcmp(item, n))
{
@@ -2988,7 +2988,7 @@ _edje_entry_items_list(Edje_Real_Part *rp)
EINA_LIST_FOREACH(en->anchors, l, an)
{
const char *n = an->name;
- if (an->item) continue;
+ if (!an->item) continue;
if (!n) n = "";
items = eina_list_append(items, strdup(n));
}