From 27d5c9f81bda25cb766bcbaef5cf29e94d516e64 Mon Sep 17 00:00:00 2001 From: Mukesh Gupta Date: Tue, 21 Dec 2010 16:10:30 +0000 Subject: sl#1504: preserve zoom while rotating 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 --- (limited to 'ImageView.py') diff --git a/ImageView.py b/ImageView.py index 356b794..16c34af 100644 --- a/ImageView.py +++ b/ImageView.py @@ -197,6 +197,7 @@ class ImageViewer(gtk.DrawingArea): logging.warning('Got unsupported rotate angle') 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) -- cgit v0.9.1