summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-04-20 14:31:51 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-04-20 14:31:51 +0000
commit0330bbd89fec2719e1c883cd610191d5e889c4ae (patch)
treec179d012bf15922e6e0d1e1cc4f01f739bbe5eca /src/lib
parent54c3814f36053ea6574e203ac04a9c771ad6f739 (diff)
elementary: use FOREACH_SAFE we remove an element in the loop
SVN revision: 70364
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_genlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index e0531c33b..c8e5c69ad 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -4821,7 +4821,7 @@ _elm_genlist_expanded_next_item_get(Elm_Gen_Item *it)
4821static void 4821static void
4822_elm_genlist_move_items_set(Elm_Gen_Item *it) 4822_elm_genlist_move_items_set(Elm_Gen_Item *it)
4823{ 4823{
4824 Eina_List *l; 4824 Eina_List *l, *ll;
4825 Elm_Gen_Item *it2 = NULL; 4825 Elm_Gen_Item *it2 = NULL;
4826 Evas_Coord ox, oy, ow, oh, dh = 0; 4826 Evas_Coord ox, oy, ow, oh, dh = 0;
4827 4827
@@ -4830,7 +4830,7 @@ _elm_genlist_move_items_set(Elm_Gen_Item *it)
4830 if (it->item->expanded) 4830 if (it->item->expanded)
4831 { 4831 {
4832 it->wd->move_items = elm_genlist_realized_items_get(it->wd->obj); 4832 it->wd->move_items = elm_genlist_realized_items_get(it->wd->obj);
4833 EINA_LIST_FOREACH(it->wd->move_items, l, it2) 4833 EINA_LIST_FOREACH_SAFE(it->wd->move_items, l, ll, it2)
4834 { 4834 {
4835 if (it2 == it->wd->expanded_next_item) break; 4835 if (it2 == it->wd->expanded_next_item) break;
4836 it->wd->move_items = eina_list_remove(it->wd->move_items, it2); 4836 it->wd->move_items = eina_list_remove(it->wd->move_items, it2);