dabo Commit
Revision 5449
Date: 2009-10-05 12:36:33 -0700 (Mon, 05 Oct 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5449

Changed:
U   trunk/ide/ReportDesigner.py

Log:
Fixed a bug preventing you from nudging a group of objects, where the group
contains a SpanningLine or SpanningRectangle.



Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2009-10-04 20:11:02 UTC (rev 5448)
+++ trunk/ide/ReportDesigner.py 2009-10-05 19:36:33 UTC (rev 5449)
@@ -1757,17 +1757,7 @@
                        ## arrow key
                        evt.stop()  ## don't let the arrow key scroll the 
window.
                        size, turbo = False, False
-                       if shiftDown:
-                               if key in ["up", "down"]:
-                                       propName = "height"
-                               else:
-                                       propName = "width"
-                       else:
-                               if key in ["up", "down"]:
-                                       propName = "y"
-                               else:
-                                       propName = "x"
-                       
+
                        if key in ["up", "right"]:
                                adj = 1
                        else:
@@ -1781,6 +1771,17 @@
                                if not isinstance(o, Drawable) or 
o.getProp("designerLock"):
                                        continue
 
+                               if shiftDown:
+                                       if key in ["up", "down"]:
+                                               propName = "height"
+                                       else:
+                                               propName = "width"
+                               else:
+                                       if key in ["up", "down"]:
+                                               propName = "y"
+                                       else:
+                                               propName = "x"
+                       
                                propNames = [propName]
                                if isinstance(o, (SpanningLine, 
SpanningRectangle)):
                                        if propName == "x":




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to