edje: fix edje_object_part_text_item_list_get and edje_object_part_text_item_geometry_get
authorartem.popov <artem.popov@samsung.com>
Tue, 4 Nov 2014 23:00:45 +0000 (00:00 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 4 Nov 2014 23:15:52 +0000 (00:15 +0100)
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>
src/lib/edje/edje_entry.c

index be9f824a18be543caabaa5ee876d10d186c55520..61d38b8e904db6c32634d17ca6f2b4130adcf5f8 100644 (file)
@@ -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));
           }