From 09e15ebe0409b41c9a505ee99557ee4294d03248 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 28 Mar 2012 06:23:18 +0000 Subject: [PATCH] elm genlist: Fixed tree effect bug. Patch by Chanwook Jung On Wed, Mar 28, 2012 at 3:06 PM, chanwook jung wrote: > Dear all, > > I added one line to fix the bug at tree effect. If the item is equal to > expanded_next_item, expanded_next_item set to NULL in _item_del > > Thanks, > Joey SVN revision: 69691 --- legacy/elementary/src/lib/elm_genlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index d7123fcd88..d6cc2683af 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -862,6 +862,7 @@ _item_del(Elm_Gen_Item *it) it->wd->anchor_item = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev); } if (it->wd->expanded_item == it) it->wd->expanded_item = NULL; + if (it->wd->expanded_next_item == it) it->wd->expanded_next_item = NULL; if (it->parent) it->parent->item->items = eina_list_remove(it->parent->item->items, it); if (it->item->swipe_timer) ecore_timer_del(it->item->swipe_timer);