[Sugar-devel] [PATCH] sl#1504: preserve zoom while rotating

Mukesh Gupta mukeshgupta.2006 at gmail.com
Tue Dec 21 11:10:30 EST 2010


Earlier image used to go down to its original size while rotating .This patch
will keep zoom factor into account while rotating

Signed-off-by: Mukesh Gupta <mukeshgupta.2006 at gmail.com>
---
 ImageView.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ImageView.py b/ImageView.py
index bdaa458..30d94d5 100644
--- a/ImageView.py
+++ b/ImageView.py
@@ -200,6 +200,7 @@ class ImageViewer(gtk.DrawingArea):
             pass
             
         self._temp_pixbuf = self.pixbuf.rotate_simple(rotate)
+        self.set_zoom(self.zoom)
         if self._optimal_zoom_flag == True:
             self.zoom = self.calculate_optimal_zoom(pixbuf = self._temp_pixbuf)
         
-- 
1.7.1



More information about the Sugar-devel mailing list