cedric pushed a commit to branch master.

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

commit 03adadcda8d4adb58115c66550daa998a0cd555a
Author: Jaeyong Hwang <[email protected]>
Date:   Mon Jun 12 10:06:14 2017 -0700

    evas: fix a stride value after calling evas_object_image_orient_set API
    
    Summary: Before the value of stride is calculated, the weight and height of 
the rotated image should be set.
    
    Test Plan: {F1409510}
    
    Reviewers: jpeg
    
    Subscribers: cedric, jpeg
    
    Differential Revision: https://phab.enlightenment.org/D4955
    
    Signed-off-by: Cedric Bail <[email protected]>
---
 src/lib/evas/canvas/evas_object_image.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_image.c 
b/src/lib/evas/canvas/evas_object_image.c
index ee32f1896d..6737c078e4 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -422,6 +422,13 @@ _evas_image_orientation_set(Eo *eo_obj, Evas_Image_Data 
*o, Evas_Image_Orient or
         int stride = 0;
 
         o->engine_data = ENFN->image_orient_set(ENDT, o->engine_data, orient);
+        ENFN->image_size_get(ENDT, o->engine_data, &iw, &ih);
+        EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
+          {
+             state_write->image.w = iw;
+             state_write->image.h = ih;
+          }
+        EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
         if(o->engine_data)
           {
              EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
@@ -440,13 +447,6 @@ _evas_image_orientation_set(Eo *eo_obj, Evas_Image_Data 
*o, Evas_Image_Orient or
                }
              o->written = EINA_TRUE;
           }
-        ENFN->image_size_get(ENDT, o->engine_data, &iw, &ih);
-        EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
-          {
-             state_write->image.w = iw;
-             state_write->image.h = ih;
-          }
-        EINA_COW_IMAGE_STATE_WRITE_END(o, state_write);
      }
    o->changed = EINA_TRUE;
    evas_object_change(eo_obj, obj);

-- 


Reply via email to