raster pushed a commit to branch master.

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

commit dc30ef6d7ab9b3a657bf718889828561f58c47d1
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Jan 13 08:53:14 2015 +0900

    elm image - fix image rotation in non-common cases
    
    this fixes d6f4040d0c62c220f2339d2a57126fde43e85e19 for the non-common
    path that normalizes then applies new orientation
    
    @fix
---
 src/lib/elm_image.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index ae8922e..e57cccb 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -1280,13 +1280,15 @@ _elm_image_orient_set(Eo *obj, Elm_Image_Data *sd, 
Elm_Image_Orient orient)
                 case ELM_IMAGE_ORIENT_0:
                   break;
                 case ELM_IMAGE_ORIENT_90:
-                  _elm_image_smart_rotate_270(sd);
+                  if (i == 0) _elm_image_smart_rotate_270(sd);
+                  else _elm_image_smart_rotate_90(sd);
                   break;
                 case ELM_IMAGE_ORIENT_180:
                   _elm_image_smart_rotate_180(sd);
                   break;
                 case ELM_IMAGE_ORIENT_270:
-                  _elm_image_smart_rotate_90(sd);
+                  if (i == 0) _elm_image_smart_rotate_90(sd);
+                  else _elm_image_smart_rotate_270(sd);
                   break;
                 case ELM_IMAGE_FLIP_HORIZONTAL:
                   _elm_image_flip_horizontal(sd);

-- 


Reply via email to