From: Jean-Philippe Andre Date: Thu, 22 Dec 2016 01:42:10 +0000 (+0900) Subject: box: Fix bad floating point comparison X-Git-Tag: upstream/1.20.0~2641 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10a215354a59f6aafdd267360671778b4c54dd34;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/lib/elementary/efl_ui_box_layout.c b/src/lib/elementary/efl_ui_box_layout.c index 50d5cef..da0d0e7 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]) {