box: Fix bad floating point comparison
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 22 Dec 2016 01:42:10 +0000 (10:42 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 22 Dec 2016 01:51:05 +0000 (10:51 +0900)
This led to a completely invalid layout when using the Ui.Box
widget. Clearly the patch hasn't been thought through and tested
properly.

No comment.

Fixes dc022d602d3e7d396137bb6bfb290e70880d89dd

src/lib/elementary/efl_ui_box_layout.c

index 50d5cef..da0d0e7 100644 (file)
@@ -156,7 +156,7 @@ _efl_ui_box_custom_layout(Efl_Ui_Box *ui_box, Evas_Object_Box_Data *bd)
 
    if (extra < 0) extra = 0;
 
-   if (!EINA_DBL_CMP(weight[!horiz], 0))
+   if (EINA_DBL_CMP(weight[!horiz], 0))
      {
         if (box_fill[!horiz])
           {