dabo Commit
Revision 5227
Date: 2009-05-18 16:08:08 -0700 (Mon, 18 May 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5227

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

Log:
Fixed the problem where the group footer would print in the wrong location at
the bottom of the page.

Increased the width of the band outlines so I could see it during debugging.



Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2009-05-18 19:26:21 UTC (rev 5226)
+++ trunk/dabo/lib/reportWriter.py      2009-05-18 23:08:08 UTC (rev 5227)
@@ -1352,7 +1352,7 @@
                        ## caption at the origin of the band.
                        c = self.Canvas
                        c.saveState()
-                       c.setLineWidth(0.1)
+                       c.setLineWidth(0.75)
                        c.setStrokeColorRGB(0.8, 0.5, 0.7)
                        c.setDash(1, 2)
                        c.rect(x, y, width, height)
@@ -1643,7 +1643,8 @@
                                return dy
                        else:
                                # no deferreds ever involved
-                               y -= (maxBandHeight-bandHeight)
+                               if maxBandHeight > bandHeight:
+                                       y -= (maxBandHeight-bandHeight)
                                return y
 
 



_______________________________________________
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