jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=30593b19ba6ea7986514fbedd86fac5f6569ff1c
commit 30593b19ba6ea7986514fbedd86fac5f6569ff1c Author: Sungtaek Hong <sth253.h...@samsung.com> Date: Mon Jan 29 13:21:49 2018 +0900 Efl.Ui.Image: remove previous image when NULL is set Summary: when Efl.Ui.Image has an image, efl_file_set(efl_added, NULL, NULL) is not working. I think this should remove prevous image and go back to empty image. @fix Reviewers: jpeg, cedric, eunue, woohyun, Jaehyun_Cho Subscribers: Blackmole Differential Revision: https://phab.enlightenment.org/D5742 --- src/lib/elementary/efl_ui_image.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c index 4b0faf8552..a2e0effea8 100644 --- a/src/lib/elementary/efl_ui_image.c +++ b/src/lib/elementary/efl_ui_image.c @@ -1129,11 +1129,11 @@ _efl_ui_image_efl_file_file_set(Eo *obj, Efl_Ui_Image_Data *sd, const char *file sd->anim = EINA_FALSE; } - if (!file && !sd->prev_img) return EINA_FALSE; - else if (!file && sd->prev_img) + if (!file) { - _prev_img_del(sd); - return EINA_TRUE; + if (sd->prev_img) + _prev_img_del(sd); + return _efl_ui_image_smart_internal_file_set(obj, sd, file, NULL, key);; } if (_efl_ui_image_is_remote(file)) --