elm/map: ignore zoom events during construction which cannot be handled

Summary:
sd->obj is null until after the object is finalized, so this codepath
cannot be processed until then

@fix
Depends on D8966

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8967
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:18:26 -04:00
parent fb63dfae77
commit f0a136f999
1 changed files with 6 additions and 4 deletions

View File

@ -1159,14 +1159,16 @@ _zoom_do(Elm_Map_Data *sd,
ecore_timer_del(sd->zoom_timer);
sd->zoom_timer = NULL;
}
else
else if (sd->obj)
efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_ZOOM_START, NULL);
if (sd->obj)
sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj);
efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_ZOOM_CHANGE, NULL);
{
sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj);
efl_event_callback_legacy_call
(sd->obj, EFL_UI_EVENT_ZOOM_CHANGE, NULL);
}
efl_event_callback_legacy_call
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);