summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWooHyun Jung <wh0705.jung@samsung.com>2019-10-07 09:38:14 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-07 10:03:48 -0400
commit5a684e0855ccdde5b6eedc9198d75fe8759aab84 (patch)
tree5a745011514730e929ccc2f8fa7dfaff25f6d5de
parentb0ac1ec85f7290da7f8af7ddff30b3b501325ace (diff)
downloadefl-5a684e0855ccdde5b6eedc9198d75fe8759aab84.tar.gz
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
-rw-r--r--src/lib/elementary/efl_ui_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c
index 050f05e00f..b110e9d998 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -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;