[layout][access] access object on a layout could not be a child of
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 18 Mar 2013 08:58:06 +0000 (17:58 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 21 Mar 2013 08:13:57 +0000 (17:13 +0900)
the layout eventhough it is a child actually, because the access object could not be swallowed

Change-Id: Ie701418c31e049b6eaa673b0060acde693d66eaa

src/lib/elm_layout.c

index ddce6c3..84800ac 100644 (file)
@@ -384,14 +384,14 @@ _elm_layout_smart_focus_next(const Evas_Object *obj,
 
    ELM_LAYOUT_DATA_GET(obj, sd);
 
-   if (!sd->subs) return EINA_FALSE;
-
    if ((items = elm_widget_focus_custom_chain_get(obj)))
      list_data_get = eina_list_data_get;
    else
      {
         items = sd->subs;
         list_data_get = _elm_layout_list_data_get;
+
+        if (!items) return EINA_FALSE;
      }
 
    return elm_widget_focus_list_next_get