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:
af4120c
)
elm_map: Avoid unlikely division by zero.
author
Stefan Schmidt
<s.schmidt@samsung.com>
Tue, 17 Jun 2014 09:01:22 +0000
(11:01 +0200)
committer
Stefan Schmidt
<s.schmidt@samsung.com>
Tue, 17 Jun 2014 09:01:22 +0000
(11:01 +0200)
The division by zeor could happen when zoom_cnt is zeor OR when region_cnt
is zero. No need for both cases. In the curent implementation this is
impossible as both are hard coded defines. But code changes so we should
handle this.
CID: 1216619
legacy/elementary/src/lib/elm_map.c
patch
|
blob
|
history
diff --git
a/legacy/elementary/src/lib/elm_map.c
b/legacy/elementary/src/lib/elm_map.c
index
de03088
..
d6f3a48
100644
(file)
--- a/
legacy/elementary/src/lib/elm_map.c
+++ b/
legacy/elementary/src/lib/elm_map.c
@@
-1224,7
+1224,7
@@
_zoom_bring_with_animation(Elm_Map_Data *sd,
{
double tlon, tlat;
Evas_Coord vx, vy, vw, vh;
- if ((zoom_cnt == 0)
&&
(region_cnt == 0)) return;
+ if ((zoom_cnt == 0)
||
(region_cnt == 0)) return;
sd->ani.zoom_cnt = zoom_cnt;
sd->ani.zoom = sd->zoom;