raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=0b4c67caa5ceb0180cb3fa3e3ef65aebf5250685

commit 0b4c67caa5ceb0180cb3fa3e3ef65aebf5250685
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Feb 9 20:25:44 2015 +0900

    elm - list - fix invalid item data scope get
    
    @fix
---
 src/lib/elm_list.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 986a454..8371e52 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)))

-- 


Reply via email to