From: Cedric BAIL Date: Tue, 20 Dec 2016 23:42:00 +0000 (-0800) Subject: elementary: fix float comparison warning in multi button entry. X-Git-Tag: upstream/1.20.0~2679 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bec8a19080cede1e02214bba9a97fb46046e50b8;p=platform%2Fupstream%2Fefl.git elementary: fix float comparison warning in multi button entry. --- diff --git a/src/lib/elementary/elc_multibuttonentry.c b/src/lib/elementary/elc_multibuttonentry.c index bdd5f6b..a78f176 100644 --- a/src/lib/elementary/elc_multibuttonentry.c +++ b/src/lib/elementary/elc_multibuttonentry.c @@ -1383,12 +1383,12 @@ _box_layout_cb(Evas_Object *o, efl_gfx_size_hint_combined_min_get(obj, &mnw, &mnh); fw = fh = EINA_FALSE; - if (ax == -1.0) {fw = 1; ax = 0.5; } - if (ay == -1.0) {fh = 1; ay = 0.5; } + if (EINA_DBL_CMP(ax, -1)) {fw = 1; ax = 0.5; } + if (EINA_DBL_CMP(ay, -1)) {fh = 1; ay = 0.5; } if (rtl) ax = 1.0 - ax; ww = mnw; - if (wx) + if (!EINA_DBL_CMP(wx, 0)) { if (ww <= w - linew) ww = w - linew; else ww = w;