summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-03-26 20:44:09 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2017-03-26 20:48:02 +0530
commitecd89e0591a8cb37012705afa7a78ff3491fcac0 (patch)
tree4dbd5570968bb400d4c8670db7377a4a9194f543
parentdd627324f9f7e1a1d92a0439c8e309f9907a26f3 (diff)
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>
-rw-r--r--src/lib/elementary/elm_gengrid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index 3acfa4d00c..9a2c61d5ab 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -2699,6 +2699,7 @@ static Eina_Bool
2699_elm_gengrid_item_edge_check(Elm_Object_Item *eo_it, 2699_elm_gengrid_item_edge_check(Elm_Object_Item *eo_it,
2700 Elm_Focus_Direction dir) 2700 Elm_Focus_Direction dir)
2701{ 2701{
2702 if (!eo_it) return EINA_FALSE;
2702 ELM_GENGRID_ITEM_DATA_GET(eo_it, it); 2703 ELM_GENGRID_ITEM_DATA_GET(eo_it, it);
2703 ELM_GENGRID_ITEM_CHECK_OR_RETURN(it, EINA_FALSE); 2704 ELM_GENGRID_ITEM_CHECK_OR_RETURN(it, EINA_FALSE);
2704 ELM_GENGRID_DATA_GET(WIDGET(it), sd); 2705 ELM_GENGRID_DATA_GET(WIDGET(it), sd);