[elm_widget.c] Rollback elm_widget_show_region_set api change
authorSeunggyun Kim <sgyun.kim@samsung.com>
Wed, 23 Mar 2011 03:00:48 +0000 (12:00 +0900)
committerSeunggyun Kim <sgyun.kim@samsung.com>
Wed, 23 Mar 2011 03:00:48 +0000 (12:00 +0900)
src/lib/elm_widget.c

index 735fb4f..cde787e 100644 (file)
@@ -1598,10 +1598,10 @@ elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Co
    do
      {
         parent_obj = sd->parent_obj;
-        if ((!parent_obj) || (!_elm_widget_is(parent_obj))) break;
-        sd = evas_object_smart_data_get(parent_obj);
-        if (!sd) break;
         child_obj = sd->obj;
+        sd = evas_object_smart_data_get(parent_obj);
+
+        if ((!parent_obj) || (!sd) || (!_elm_widget_is(parent_obj))) break;
 
         evas_object_geometry_get(parent_obj, &px, &py, NULL, NULL);
         evas_object_geometry_get(child_obj, &cx, &cy, NULL, NULL);