fix 0 size focus region
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 20 May 2014 06:34:01 +0000 (15:34 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 20 May 2014 06:34:01 +0000 (15:34 +0900)
@fix - this fixes T1205 ... or should fix it... in theory.

legacy/elementary/src/lib/elm_widget.c

index f4225a0..ce2b920 100644 (file)
@@ -2899,6 +2899,7 @@ _elm_widget_focus_region_get(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED, Ev
         if (x) *x = 0;
         if (y) *y = 0;
      }
+   if ((*w <= 0) || (*h <= 0)) return EINA_FALSE;
    return EINA_TRUE;
 }