projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a65cb62
)
elementary: fix float comparison warning in multi button entry.
author
Cedric BAIL
<cedric@osg.samsung.com>
Tue, 20 Dec 2016 23:42:00 +0000
(15:42 -0800)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000
(16:39 -0800)
src/lib/elementary/elc_multibuttonentry.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elc_multibuttonentry.c
b/src/lib/elementary/elc_multibuttonentry.c
index bdd5f6b83389500ee37b3b221f1859b3f3c52f73..a78f17686826ba8a7e8b60db1f642c7763459834 100644
(file)
--- 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;