forked from enlightenment/efl
efl_ui_image: fix backward compatibility issue
Summary: Previously, "anim" property was saved before checking evas-image's "animated" stated. This patch just corrects the issue. Reviewers: zmike, bu5hm4n, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10293
This commit is contained in:
parent
b0ac1ec85f
commit
5a684e0855
|
@ -1749,6 +1749,9 @@ _efl_ui_image_animated_set_internal(Eo *obj, Efl_Ui_Image_Data *sd, Eina_Bool an
|
|||
return EINA_TRUE;
|
||||
}
|
||||
sd->img = elm_image_object_get(obj);
|
||||
|
||||
if (elm_widget_is_legacy(obj)) sd->anim = anim; //legacy
|
||||
|
||||
if (!evas_object_image_animated_get(sd->img)) return EINA_FALSE;
|
||||
sd->anim = anim;
|
||||
|
||||
|
|
Loading…
Reference in New Issue