summaryrefslogtreecommitdiff
path: root/src/lib/elm_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_map.c')
-rw-r--r--src/lib/elm_map.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c
index 8a3101894..10172703d 100644
--- a/src/lib/elm_map.c
+++ b/src/lib/elm_map.c
@@ -1122,12 +1122,17 @@ _zoom_do(Elm_Map_Data *sd,
1122 (x, y, vw, vh)); 1122 (x, y, vw, vh));
1123 } 1123 }
1124 1124
1125 if (sd->zoom_timer) ecore_timer_del(sd->zoom_timer); 1125 if (sd->zoom_timer)
1126 {
1127 ecore_timer_del(sd->zoom_timer);
1128 sd->zoom_timer = NULL;
1129 }
1126 else 1130 else
1127 eo_do(sd->obj, eo_event_callback_call 1131 eo_do(sd->obj, eo_event_callback_call
1128 (EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_START, NULL)); 1132 (EVAS_ZOOMABLE_INTERFACE_EVENT_ZOOM_START, NULL));
1129 1133
1130 sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj); 1134 if (sd->obj)
1135 sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj);
1131 eo_do(sd->obj, eo_event_callback_call 1136 eo_do(sd->obj, eo_event_callback_call
1132 (ELM_MAP_EVENT_ZOOM_CHANGE, NULL)); 1137 (ELM_MAP_EVENT_ZOOM_CHANGE, NULL));
1133 1138