diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-02-09 20:25:44 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-02-09 20:25:44 +0900 |
commit | 0b4c67caa5ceb0180cb3fa3e3ef65aebf5250685 (patch) | |
tree | 6f3ecdaa7220417241c99c97658f523e2f6479ed | |
parent | 88bc39b05d34c9876ef71ecfd3b7a01285ff2fda (diff) | |
download | elementary-0b4c67caa5ceb0180cb3fa3e3ef65aebf5250685.tar.gz |
elm - list - fix invalid item data scope get
@fix
-rw-r--r-- | src/lib/elm_list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 986a4547f..8371e52bf 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1224,6 +1224,7 @@ _elm_list_nearest_visible_item_get(Evas_Object *obj, Elm_List_Item_Data *it) while ((item_list = eina_list_next(item_list))) { item = eo_data_scope_get(eina_list_data_get(item_list), ELM_LIST_ITEM_CLASS); + if (!item) continue; evas_object_geometry_get(VIEW(item), &cx, &cy, &cw, &ch); if (ELM_RECTS_INCLUDE(vx, vy, vw, vh, cx, cy, cw, ch) && !elm_object_item_disabled_get(EO_OBJ(item))) @@ -1238,6 +1239,7 @@ _elm_list_nearest_visible_item_get(Evas_Object *obj, Elm_List_Item_Data *it) while ((item_list = eina_list_prev(item_list))) { item = eo_data_scope_get(eina_list_data_get(item_list), ELM_LIST_ITEM_CLASS); + if (!item) continue; evas_object_geometry_get(VIEW(item), &cx, &cy, &cw, &ch); if (ELM_RECTS_INCLUDE(vx, vy, vw, vh, cx, cy, cw, ch) && !elm_object_item_disabled_get(EO_OBJ(item))) |