dabo Commit
Revision 5793
Date: 2010-04-23 13:55:30 -0700 (Fri, 23 Apr 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5793

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
Fixes error pasting objects with height of None.


Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2010-04-23 18:35:31 UTC (rev 5792)
+++ trunk/dabo/lib/reportWriter.py      2010-04-23 20:55:30 UTC (rev 5793)
@@ -402,7 +402,11 @@
                top, bottom, or middle of the object, depending on the vAnchor 
setting."""
                ret = self.getPt(self.getProp("y"))
                vAnchor = self.getProp("vAnchor").lower()
-               height = self.getPt(self.getProp("height"))
+               height = self.getProp("height")
+               if height is None:
+                       height = 0
+               else:
+                       height = self.getPt("height")
                if vAnchor == "bottom":
                        ret += height
                if vAnchor == "middle":



_______________________________________________
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