kimcinoo pushed a commit to branch master.

commit c0c0be47ad3590bb298e8b48003a760aa641b244
Author: Shinwoo Kim <[email protected]>
Date:   Fri May 3 20:01:58 2013 +0900

    [access][genlist] do not append NULL to genlist focus list
---
 ChangeLog             | 1 +
 NEWS                  | 1 +
 src/lib/elm_genlist.c | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 1c17528..d167428 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1331,3 +1331,4 @@
 2012-05-03 Shinwoo Kim
 
         * Fix gengrid does not work under the accessibility.
+        * Fix do not append NULL to genlist focus list.
diff --git a/NEWS b/NEWS
index 2d1ea7d..91fe03d 100644
--- a/NEWS
+++ b/NEWS
@@ -224,6 +224,7 @@ Fixes:
    * Elm_entry_filter_accept_set function now can recognize tags.
    * Don't be dead even if a ctxpopup item callback is null.
    * Fix gengrid does not work under the accessibility.
+   * Fix do not append NULL to genlist focus list.
 
 Removals:
 
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index d1ca36a..abdcd6c 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -2616,7 +2616,8 @@ _elm_genlist_smart_focus_next(Eo *obj, void *_pd 
EINA_UNUSED, va_list *list)
                        evas_object_geometry_get(it->base.view, &x, &y, &w, &h);
 
                        /* check item which displays more than half of its size 
*/
-                       if (ELM_RECTS_INTERSECT
+                       if (it->base.access_obj &&
+                           ELM_RECTS_INTERSECT
                              (x + (w / 2), y + (h / 2), 0, 0, sx, sy, sw, sh))
                          items = eina_list_append(items, it->base.access_obj);
 

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2

Reply via email to