elm_map: Avoid unlikely division by zero.

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
This commit is contained in:
Stefan Schmidt 2014-06-17 11:01:22 +02:00
parent af4120c5c8
commit d3b0bb58a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;