dabo Commit
Revision 6565
Date: 2011-04-15 16:33:42 -0700 (Fri, 15 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6565

Changed:
U   trunk/ide/ReportDesigner.py

Log:
Fixed bug painting selected object that doesn't have anchor properties. This
bug was just introduced yesterday.


Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2011-04-15 22:46:02 UTC (rev 6564)
+++ trunk/ide/ReportDesigner.py 2011-04-15 23:33:42 UTC (rev 6565)
@@ -1579,9 +1579,16 @@
                        width, height = (rect[2], rect[3])
                        thickness = self._anchorThickness
 
-                       hAnchor = obj.getProp("hAnchor").lower()
-                       vAnchor = obj.getProp("vAnchor").lower()
+                       try:
+                               hAnchor = obj.getProp("hAnchor").lower()
+                       except StandardError:
+                               hAnchor = None
 
+                       try:
+                               vAnchor = obj.getProp("vAnchor").lower()
+                       except StandardError:
+                               vAnchor = None
+
                        anchors = {"lt": ["left", "top", x-1, y-1],
                                        "lb": ["left", "bottom", x-1, 
y+height-thickness+1],
                                        "ct": ["center", "top", 
x+(.5*width)-(.5*thickness), y-1],



_______________________________________________
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