From 80a221f8009a758caa30d8ed11f0d48115f10a17 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 4 Jun 2019 13:42:26 +0900 Subject: [PATCH] efl_ui_animation_view: access only valid transit. Change-Id: Ia292e1091daa9f2245a7ebe3aeaaf8edb2af026a --- src/lib/elementary/efl_ui_animation_view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_animation_view.c b/src/lib/elementary/efl_ui_animation_view.c index cdf10af..15f9b9c 100644 --- a/src/lib/elementary/efl_ui_animation_view.c +++ b/src/lib/elementary/efl_ui_animation_view.c @@ -256,7 +256,8 @@ _update_frame_duration(Efl_Ui_Animation_View_Data *pd) double frame_rate = round((double)frame_count / evas_object_vg_animated_frame_duration_get(pd->vg, 0, 0)); pd->frame_duration = (double)(max_frame - min_frame) / frame_rate; - elm_transit_duration_set(pd->transit, pd->frame_duration * (1/pd->speed)); + if (pd->transit) + elm_transit_duration_set(pd->transit, pd->frame_duration * (1/pd->speed)); } static Eina_Bool -- 2.7.4