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

Manuel Kaufmann humitos at gmail.com
Mon Apr 30 16:02:05 EDT 2012


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



More information about the Sugar-devel mailing list