cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=5a3bd37ebc3a8caa63efb3259fd695b9521d00a2

commit 5a3bd37ebc3a8caa63efb3259fd695b9521d00a2
Author: Youngbok Shin <[email protected]>
Date:   Tue Feb 3 10:17:47 2015 +0100

    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 <[email protected]>
---
 src/lib/elm_image.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 037420c..cddc2c4 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
    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)
      {

-- 


Reply via email to