From 1b8e74ee1bcb49cda535d626c3f1d9804712318c Mon Sep 17 00:00:00 2001 From: "sh10233.lee" Date: Wed, 22 May 2013 13:29:20 +0900 Subject: [PATCH] gengrid: add new condition in _elm_gengrid_item_del_serious() that item cannot be bring_in or show_region when item is deleted. Change-Id: I183fcf3880c137e3ea7112b3bfe84608c8af6451 --- src/lib/elm_gengrid.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 4d9b4e5..dbf8d3a 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -2099,6 +2099,19 @@ _elm_gengrid_item_del_serious(Elm_Gen_Item *it) } _elm_gengrid_item_del_common(it); + + if ((it == GG_IT(it)->wsd->bring_in_it) && (GG_IT(it)->wsd->bring_in == EINA_TRUE)) + { + GG_IT(it)->wsd->bring_in_it = NULL; + GG_IT(it)->wsd->bring_in = EINA_FALSE; + } + + if ((it == GG_IT(it)->wsd->show_it) && (GG_IT(it)->wsd->show_region == EINA_TRUE)) + { + GG_IT(it)->wsd->show_it = NULL; + GG_IT(it)->wsd->show_region = EINA_FALSE; + } + free(it->item); it->item = NULL; } -- 2.7.4