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

Anish Mangal anishmangal2002 at gmail.com
Tue Dec 21 12:44:57 EST 2010


On Tue, Dec 21, 2010 at 1:10 PM, Mukesh Gupta
<mukeshgupta.2006 at gmail.com> wrote:
> 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
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>

Reviewed-by: Anish Mangal <anish at sugarlabs.org>


More information about the Sugar-devel mailing list