From 10a215354a59f6aafdd267360671778b4c54dd34 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 22 Dec 2016 10:42:10 +0900 Subject: [PATCH] box: Fix bad floating point comparison 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_box_layout.c b/src/lib/elementary/efl_ui_box_layout.c index 50d5cefd28..da0d0e768a 100644 --- a/src/lib/elementary/efl_ui_box_layout.c +++ b/src/lib/elementary/efl_ui_box_layout.c @@ -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]) {