forked from enlightenment/efl
gengrid: fix the crash in _elm_gengrid_item_edge_check
_elm_gengrid_item_edge_check can have eo_it as NULL if none of widget item is focused. This could happen if item_focus is not enabled on items. test case: elm test -> gengrid 2 (enable only "focus hightligt set") and move focus. @fix Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
This commit is contained in:
parent
dd627324f9
commit
ecd89e0591
|
@ -2699,6 +2699,7 @@ static Eina_Bool
|
|||
_elm_gengrid_item_edge_check(Elm_Object_Item *eo_it,
|
||||
Elm_Focus_Direction dir)
|
||||
{
|
||||
if (!eo_it) return EINA_FALSE;
|
||||
ELM_GENGRID_ITEM_DATA_GET(eo_it, it);
|
||||
ELM_GENGRID_ITEM_CHECK_OR_RETURN(it, EINA_FALSE);
|
||||
ELM_GENGRID_DATA_GET(WIDGET(it), sd);
|
||||
|
|
Loading…
Reference in New Issue