[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
This commit is contained in:
Prince Kumar Dubey 2016-02-12 19:42:25 +09:00 committed by Hermet Park
parent 6fec93c62d
commit f420ed7707
1 changed files with 11 additions and 0 deletions

View File

@ -3789,6 +3789,17 @@ _elm_gengrid_item_del_not_serious(Elm_Gen_Item *it)
if (it->walking > 0) return;
if (sd->show_it == eo_it)
{
sd->show_it = NULL;
sd->show_region = EINA_FALSE;
}
if (sd->bring_in_it == eo_it)
{
sd->bring_in_it = NULL;
sd->bring_in = EINA_FALSE;
}
if (it->selected)
sd->selected = eina_list_remove(sd->selected, eo_it);
if (sd->last_selected_item == eo_it)