summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrince Kumar Dubey <prince.dubey@samsung.com>2016-02-12 19:42:25 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-02-12 19:43:11 +0900
commit087e19a8e1d72a159ee9731d468cf30b999adbef (patch)
tree06d69b95f3b4c808d4584d0766823f1e082f8622
parentf2f435614bd32b50c8d7f00beb2b443161768f26 (diff)
[gengrid] possible crash issue fixed.
Summary: reset show_it, bring_in_it and corresponding flags on item deletion Test Plan: delete item with animation and rotate the handset display. Reviewers: raster, cedric Subscribers: shilpasingh, godlytalias, govi, rajeshps Differential Revision: https://phab.enlightenment.org/D3672
-rw-r--r--src/lib/elm_gengrid.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 034236a7d..729f9cdee 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -3789,6 +3789,17 @@ _elm_gengrid_item_del_not_serious(Elm_Gen_Item *it)
3789 3789
3790 if (it->walking > 0) return; 3790 if (it->walking > 0) return;
3791 3791
3792 if (sd->show_it == eo_it)
3793 {
3794 sd->show_it = NULL;
3795 sd->show_region = EINA_FALSE;
3796 }
3797 if (sd->bring_in_it == eo_it)
3798 {
3799 sd->bring_in_it = NULL;
3800 sd->bring_in = EINA_FALSE;
3801 }
3802
3792 if (it->selected) 3803 if (it->selected)
3793 sd->selected = eina_list_remove(sd->selected, eo_it); 3804 sd->selected = eina_list_remove(sd->selected, eo_it);
3794 if (sd->last_selected_item == eo_it) 3805 if (sd->last_selected_item == eo_it)