summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-08 16:23:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-08 16:23:10 +0900
commit4342a3f65df9fd0f20907296555ddb8e61f55891 (patch)
treeeec7e534211c5ca4bca8b72224dd8360113a2630
parent35505188570574824b87d6aae2b433008ed4d157 (diff)
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).
-rw-r--r--src/lib/elm_gengrid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index cb5666acb..120adb8a1 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -2505,7 +2505,7 @@ _item_horizontal_loop(Evas_Object *obj, Elm_Focus_Direction dir)
2505 else 2505 else
2506 return EINA_FALSE; 2506 return EINA_FALSE;
2507 } 2507 }
2508 2508 if (!item) return EINA_FALSE;
2509 if (sd->reorder_mode && !(sd->focused_item == item)) 2509 if (sd->reorder_mode && !(sd->focused_item == item))
2510 { 2510 {
2511 _swap_items((Elm_Gen_Item *)sd->focused_item, (Elm_Gen_Item *)item, ELM_FOCUS_RIGHT); 2511 _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)
2516 elm_gengrid_item_selected_set(item, EINA_TRUE); 2516 elm_gengrid_item_selected_set(item, EINA_TRUE);
2517 return EINA_TRUE; 2517 return EINA_TRUE;
2518 } 2518 }
2519 return EINA_FALSE;
2519} 2520}
2520 2521
2521static Eina_Bool 2522static Eina_Bool