gengrid: add new condition in _elm_gengrid_item_del_serious() that item cannot be...
authorsh10233.lee <sh10233.lee@samsung.com>
Wed, 22 May 2013 04:29:20 +0000 (13:29 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 05:12:07 +0000 (14:12 +0900)
Change-Id: I183fcf3880c137e3ea7112b3bfe84608c8af6451

src/lib/elm_gengrid.c

index 4d9b4e5..dbf8d3a 100644 (file)
@@ -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;
 }