raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f23788dcb0c2b969f5312a3d72a8e0874952e64f

commit f23788dcb0c2b969f5312a3d72a8e0874952e64f
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Aug 3 18:24:16 2016 +0900

    elm image - store smooth scale var in object as intended
    
    this fixesa bug reported by davemds and kuuko in python bindings test
    suite where setting smooth flag != getting it right after.
---
 src/lib/elementary/efl_ui_image.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/lib/elementary/efl_ui_image.c 
b/src/lib/elementary/efl_ui_image.c
index 8bf16a8..ba52cc9 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -544,17 +544,14 @@ _efl_ui_image_edje_file_set(Evas_Object *obj,
 EOLIAN static void
 _efl_ui_image_efl_image_smooth_scale_set(Eo *obj EINA_UNUSED, 
Efl_Ui_Image_Data *sd, Eina_Bool smooth)
 {
-   if (sd->edje) return;
-
+   sd->smooth = smooth;
    evas_object_image_smooth_scale_set(sd->img, smooth);
 }
 
 EOLIAN static Eina_Bool
 _efl_ui_image_efl_image_smooth_scale_get(Eo *obj EINA_UNUSED, 
Efl_Ui_Image_Data *sd)
 {
-   if (sd->edje) return EINA_FALSE;
-
-   return evas_object_image_smooth_scale_get(sd->img);
+   return sd->smooth;
 }
 
 static Eina_Bool

-- 


Reply via email to