cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f89cc21ef0e800d00062ecda8ce2981b32d512c5

commit f89cc21ef0e800d00062ecda8ce2981b32d512c5
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Dec 20 15:47:06 2016 -0800

    edje: fix float comparison warning in edje SVG loader.
---
 src/bin/edje/edje_svg_loader.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/edje/edje_svg_loader.c b/src/bin/edje/edje_svg_loader.c
index c9b4165..0d8c5e5 100644
--- a/src/bin/edje/edje_svg_loader.c
+++ b/src/bin/edje/edje_svg_loader.c
@@ -1233,8 +1233,8 @@ _attr_parse_rect_node(void *data, const char *key, const 
char *value)
         _parse_style_attr(node, key, value);
      }
 
-   if (rect->rx != 0 && rect->ry == 0) rect->ry = rect->rx;
-   if (rect->ry != 0 && rect->rx == 0) rect->rx = rect->ry;
+   if (!EINA_DBL_CMP(rect->rx, 0) && EINA_DBL_CMP(rect->ry, 0)) rect->ry = 
rect->rx;
+   if (!EINA_DBL_CMP(rect->ry, 0) && EINA_DBL_CMP(rect->rx, 0)) rect->rx = 
rect->ry;
 
    return EINA_TRUE;
 }

-- 



Reply via email to