elm gengrid - fix CID 1222464

it's possible to have a NULL item in this code - also missing a valid
return at the end (though code path never gets there).
This commit is contained in:
Carsten Haitzler 2014-08-08 16:23:10 +09:00
parent f712ac567b
commit b0d9d4977d
1 changed files with 2 additions and 1 deletions

View File

@ -2505,7 +2505,7 @@ _item_horizontal_loop(Evas_Object *obj, Elm_Focus_Direction dir)
else
return EINA_FALSE;
}
if (!item) return EINA_FALSE;
if (sd->reorder_mode && !(sd->focused_item == item))
{
_swap_items((Elm_Gen_Item *)sd->focused_item, (Elm_Gen_Item *)item, ELM_FOCUS_RIGHT);
@ -2516,6 +2516,7 @@ _item_horizontal_loop(Evas_Object *obj, Elm_Focus_Direction dir)
elm_gengrid_item_selected_set(item, EINA_TRUE);
return EINA_TRUE;
}
return EINA_FALSE;
}
static Eina_Bool