[elm_entry] raise bug was fixed
authorWooHyun Jung <wh0705.jung@samsung.com>
Thu, 4 Nov 2010 13:17:58 +0000 (22:17 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Thu, 4 Nov 2010 13:17:58 +0000 (22:17 +0900)
src/lib/elm_entry.c

index a848a5e..4356236 100644 (file)
@@ -454,7 +454,9 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
         
         while (parent_obj)
          {
-             evas_object_data_set(parent_obj, "raise", evas_object_above_get(parent_obj));
+             above = evas_object_above_get(parent_obj);
+             if (above)
+                evas_object_data_set(parent_obj, "raise", above);
             evas_object_raise(parent_obj);
             parent_obj = elm_widget_parent_get(parent_obj); 
          }
@@ -471,7 +473,8 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
         while (parent_obj)
          {
              above = evas_object_data_get(parent_obj, "raise");         
-             evas_object_stack_below(parent_obj, above);
+             if (above)
+                evas_object_stack_below(parent_obj, above);
             parent_obj = elm_widget_parent_get(parent_obj); 
          }
      }