cedric pushed a commit to branch master.

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

commit 5e5da80c62a96f91945dec210ccc7a4c27708fad
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Dec 20 15:17:01 2016 -0800

    elementary: fix float comparison warning in map.
---
 src/lib/elementary/elm_map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_map.c b/src/lib/elementary/elm_map.c
index 647ea0e..52bd910 100644
--- a/src/lib/elementary/elm_map.c
+++ b/src/lib/elementary/elm_map.c
@@ -2946,7 +2946,7 @@ _kml_parse(Elm_Map_Route *r)
           }
         fclose(f);
 
-        if (dump.distance) r->info.distance = dump.distance;
+        if (!EINA_DBL_CMP(dump.distance, 0)) r->info.distance = dump.distance;
         if (dump.description)
           {
              eina_stringshare_replace(&r->info.waypoints, dump.description);

-- 


Reply via email to