[PythonReports-checkins] PythonReports/PythonReports pdf.py, 1.3, 1.4
Brought to you by:
a1s
From: alexander s. <a1...@us...> - 2006-12-07 12:21:53
|
Update of /cvsroot/pythonreports/PythonReports/PythonReports In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7884 Modified Files: pdf.py Log Message: fix: diagonal lines were offset down by the box height Index: pdf.py =================================================================== RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/pdf.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pdf.py 6 Dec 2006 16:48:56 -0000 1.3 --- pdf.py 7 Dec 2006 12:21:50 -0000 1.4 *************** *** 2,5 **** --- 2,6 ---- """PDF output for PythonReports""" """History (most recent first): + 07-dec-2006 [als] fix: diagonal lines were offset down by the box height 05-dec-2006 [als] sweep pylint warnings; remove pdf autostart (can be easily done in command line) *************** *** 284,291 **** _x2 = _x1 + _width if line.get("backslant"): - _y2 = _y1 - _height - else: _y2 = _y1 ! _y1 = _y2 - _height # draw self.canvas.line(_x1, _y1, _x2, _y2) --- 285,292 ---- _x2 = _x1 + _width if line.get("backslant"): _y2 = _y1 ! _y1 = _y2 + _height ! else: ! _y2 = _y1 + _height # draw self.canvas.line(_x1, _y1, _x2, _y2) |