elm_image: Fix previous image visible issue
Summary: Previous image still visible when elm_image_file_set has wrong file path. Test Plan: self Reviewers: jpeg, jypark, singh.amitesh Reviewed By: singh.amitesh Subscribers: singh.amitesh, minkyu, cedric Differential Revision: https://phab.enlightenment.org/D4888
This commit is contained in:
parent
602039cf83
commit
2c119f54af
|
@ -904,6 +904,7 @@ _efl_ui_image_smart_internal_file_set(Eo *obj, Efl_Ui_Image_Data *sd,
|
|||
{
|
||||
ERR("NULL image file passed! (%p)", obj);
|
||||
}
|
||||
_prev_img_del(sd);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
|
@ -2022,6 +2023,8 @@ elm_image_memfile_set(Evas_Object *obj, const void *img, size_t size, const char
|
|||
" bytes): %s (%p)", size, evas_load_error_str(err), sd->img);
|
||||
else
|
||||
ERR("NULL image data passed (%p)", sd->img);
|
||||
|
||||
_prev_img_del(sd);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue