commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9036 - trunk/gnue-common/src/printing/pdftable


From: jcater
Subject: [gnue] r9036 - trunk/gnue-common/src/printing/pdftable
Date: Mon, 13 Nov 2006 14:26:47 -0600 (CST)

Author: jcater
Date: 2006-11-13 14:26:46 -0600 (Mon, 13 Nov 2006)
New Revision: 9036

Modified:
   trunk/gnue-common/src/printing/pdftable/pdftable.py
Log:
fixed an error with the subheading group lines when there's >2 heading levels

Modified: trunk/gnue-common/src/printing/pdftable/pdftable.py
===================================================================
--- trunk/gnue-common/src/printing/pdftable/pdftable.py 2006-11-13 19:49:17 UTC 
(rev 9035)
+++ trunk/gnue-common/src/printing/pdftable/pdftable.py 2006-11-13 20:26:46 UTC 
(rev 9036)
@@ -738,18 +738,18 @@
 
                 if c1 != c2 and align == CENTER:
                     width = canvas.stringWidth(text, font, size)
-                    yoff = size*.75
+                    yoff = size*.3
                     gutter = 3.0
                     if x2 - x1 - gutter * 2.0 > width:
-                        linesize = .5*self.scale
+                        linesize = .25*self.scale
                         canvas.setLineWidth(linesize)
-                        canvas.line(x1, boxy - yoff,
+                        canvas.line(x1, self.y + yoff,
                                     x1+(x2-x1)/2.0-width/2.0-gutter,
-                                    boxy - yoff)
+                                    self.y + yoff)
                         canvas.line(x1+(x2-x1)/2.0+width/2.0+gutter,
-                                    boxy - yoff,
+                                    self.y + yoff,
                                     x2,
-                                    boxy - yoff)
+                                    self.y + yoff)
 
                 leftBorder = header['leftBorder']
                 if leftBorder:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]