summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2015-02-03 10:17:47 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-03 10:17:50 +0100
commit5a3bd37ebc3a8caa63efb3259fd695b9521d00a2 (patch)
treeda02816f36d09007992264e4614ac6388f5382dc
parenta3e0ebf41f2723b5516cce760d46592940bab53b (diff)
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>
-rw-r--r--src/lib/elm_image.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 037420ccf..cddc2c45a 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -609,11 +609,8 @@ _elm_image_memfile_set(Eo *obj, Elm_Image_Data *sd, const void *img, size_t size
609 evas_object_image_memfile_set 609 evas_object_image_memfile_set
610 (sd->img, (void *)img, size, (char *)format, (char *)key); 610 (sd->img, (void *)img, size, (char *)format, (char *)key);
611 611
612 if (evas_object_visible_get(obj)) 612 sd->preloading = EINA_TRUE;
613 { 613 evas_object_image_preload(sd->img, EINA_FALSE);
614 sd->preloading = EINA_TRUE;
615 evas_object_image_preload(sd->img, EINA_FALSE);
616 }
617 614
618 if (evas_object_image_load_error_get(sd->img) != EVAS_LOAD_ERROR_NONE) 615 if (evas_object_image_load_error_get(sd->img) != EVAS_LOAD_ERROR_NONE)
619 { 616 {