From b23aa254e5de1cf0f6bbcff8a341f180ddd2aa8e Mon Sep 17 00:00:00 2001 From: Seunggyun Kim Date: Wed, 30 Mar 2011 20:11:14 +0900 Subject: [PATCH] [elm_genlist.c] opensource bug fix --- src/lib/elm_genlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 320fe47..7a55ae8 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3454,6 +3454,8 @@ elm_genlist_item_append(Evas_Object *obj, if (ll) it2 = ll->data; it->parent->items = eina_list_append(it->parent->items, it); if (!it2) it2 = it->parent; + if (it2->delete_me) + it2 = elm_genlist_item_prev_get(it2); wd->items = eina_inlist_append_relative(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(it2)); @@ -3516,6 +3518,8 @@ elm_genlist_item_prepend(Evas_Object *obj, if (ll) it2 = ll->data; it->parent->items = eina_list_prepend(it->parent->items, it); if (!it2) it2 = it->parent; + if (it2->delete_me) + it2 = elm_genlist_item_next_get(it2); wd->items = eina_inlist_prepend_relative(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(it2)); -- 2.7.4