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:
691ba87
)
elementary: fix float comparison warning in map.
author
Cedric BAIL
<cedric@osg.samsung.com>
Tue, 20 Dec 2016 23:17:01 +0000
(15:17 -0800)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Wed, 21 Dec 2016 00:39:30 +0000
(16:39 -0800)
src/lib/elementary/elm_map.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_map.c
b/src/lib/elementary/elm_map.c
index
647ea0e
..
52bd910
100644
(file)
--- 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);