[Sugar-devel] [PATCH Paint] Don't cut the image when rotate SL #3457

Manuel Quiñones manuq at laptop.org
Mon Apr 30 16:26:41 EDT 2012


2012/4/30 Manuel Kaufmann <humitos at gmail.com>:
> When the user rotates the image the Y coordinate have to be 0 so it image is
> visible from the top of it.
>
> Signed-off-by: Manuel Kaufmann <humitos at gmail.com>
> ---
>  OficinaActivity.py |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/OficinaActivity.py b/OficinaActivity.py
> index a74b7c1..1745d0a 100644
> --- a/OficinaActivity.py
> +++ b/OficinaActivity.py
> @@ -207,7 +207,7 @@ class OficinaActivity(activity.Activity):
>
>     def center_area(self):
>         x, y = self._get_area_displacement()
> -        self.fixed.move(self.area, x, y)
> +        self.fixed.move(self.area, x, 0)
>
>     def move_textview(self, dx, dy):
>         x, y = self._get_area_displacement()
> --
> 1.7.10

Thanks, reviewed and pushed as f935dcb0f2fed1fe69acd35f46e6cffa3758cfac .


-- 
.. manuq ..


More information about the Sugar-devel mailing list