forked from enlightenment/efl
Elementary getlist: Fix places that weren't using ELM_GENLIST_ITEM_FROM_INLIST. Patch by Daniel Juyung Seo (SeoZ).
SVN revision: 56645
This commit is contained in:
parent
bfbe785bad
commit
83cf78820d
|
@ -3138,10 +3138,10 @@ elm_genlist_clear(Evas_Object *obj)
|
|||
|
||||
if (wd->anchor_item == it)
|
||||
{
|
||||
wd->anchor_item = (Elm_Genlist_Item *)(EINA_INLIST_GET(it)->next);
|
||||
wd->anchor_item = ELM_GENLIST_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next);
|
||||
if (!wd->anchor_item)
|
||||
wd->anchor_item =
|
||||
(Elm_Genlist_Item *)(EINA_INLIST_GET(it)->prev);
|
||||
ELM_GENLIST_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev);
|
||||
}
|
||||
wd->items = eina_inlist_remove(wd->items, wd->items);
|
||||
if (it->flags & ELM_GENLIST_ITEM_GROUP)
|
||||
|
|
Loading…
Reference in New Issue