dabo Commit
Revision 6318
Date: 2011-01-14 15:40:46 -0800 (Fri, 14 Jan 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6318
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Was surprised by an error that y is None, but it was in a pretty outrageous
situation. Added some defensive code to set y to 0 in that case.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2011-01-14 21:41:01 UTC (rev 6317)
+++ trunk/dabo/lib/reportWriter.py 2011-01-14 23:40:46 UTC (rev 6318)
@@ -1083,6 +1083,10 @@
def drawSpanningObjects(self, origin=(0,0), group=None):
"""Draw all spanning objects. Called when page is changing or
group is ending."""
x,y = origin
+ if y is None:
+ # endPage();beginPage();endPage() cycle probably having
to do with a group
+ # header or footer being too tall for the page. Punt.
+ y = 0
if group is None:
spanList = []
spanList_page = []
_______________________________________________
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]