evas - table - fix copy and paste bug in table min size limiting
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 27 Aug 2014 03:39:51 +0000 (12:39 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 27 Aug 2014 03:39:51 +0000 (12:39 +0900)
logically dead code find pointed out a bug in min size limiting in
homogenouse table layout in evas - fix CID 1039457

src/lib/evas/canvas/evas_object_table.c

index c577134..7af2846 100644 (file)
@@ -480,7 +480,7 @@ _evas_object_table_calculate_layout_homogeneous(Evas_Object *o, Evas_Table_Data
    hh = h - ((priv->size.rows - 1) * priv->pad.v);
 
    if (ww < 0) ww = 0;
-   if (ww < 0) ww = 0;
+   if (hh < 0) hh = 0;
 
    EINA_LIST_FOREACH(priv->children, l, opt)
      {