elementary: fix float comparison warning in map.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Dec 2016 23:17:01 +0000 (15:17 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000 (16:39 -0800)
src/lib/elementary/elm_map.c

index 647ea0e..52bd910 100644 (file)
@@ -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);