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)
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 *
2961 EINA_LIST_FOREACH(en->anchors, l, an) 2961 EINA_LIST_FOREACH(en->anchors, l, an)
2962 { 2962 {
2963 const char *n = an->name; 2963 const char *n = an->name;
2964 if (an->item) continue; 2964 if (!an->item) continue;
2965 if (!n) n = ""; 2965 if (!n) n = "";
2966 if (!strcmp(item, n)) 2966 if (!strcmp(item, n))
2967 { 2967 {
@@ -2988,7 +2988,7 @@ _edje_entry_items_list(Edje_Real_Part *rp)
2988 EINA_LIST_FOREACH(en->anchors, l, an) 2988 EINA_LIST_FOREACH(en->anchors, l, an)
2989 { 2989 {
2990 const char *n = an->name; 2990 const char *n = an->name;
2991 if (an->item) continue; 2991 if (!an->item) continue;
2992 if (!n) n = ""; 2992 if (!n) n = "";
2993 items = eina_list_append(items, strdup(n)); 2993 items = eina_list_append(items, strdup(n));
2994 } 2994 }