elm_image: fix elm_image_memfile_set API fail when elm_image widget is not visible.

Summary:
It could success only when the widget was visible.
The API must return EINA_TRUE if buffer and size has no problem, not visiblity of widget.
@fix

Reviewers: Hermet, woohyun, jpeg

Differential Revision: https://phab.enlightenment.org/D1917

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Youngbok Shin 2015-02-03 10:17:47 +01:00 committed by Cedric BAIL
parent ab50a85937
commit 10fae20d33
1 changed files with 2 additions and 5 deletions

View File

@ -609,11 +609,8 @@ _elm_image_memfile_set(Eo *obj, Elm_Image_Data *sd, const void *img, size_t size
evas_object_image_memfile_set
(sd->img, (void *)img, size, (char *)format, (char *)key);
if (evas_object_visible_get(obj))
{
sd->preloading = EINA_TRUE;
evas_object_image_preload(sd->img, EINA_FALSE);
}
sd->preloading = EINA_TRUE;
evas_object_image_preload(sd->img, EINA_FALSE);
if (evas_object_image_load_error_get(sd->img) != EVAS_LOAD_ERROR_NONE)
{