From 0b277c4bb220defc0745babff39c0120b2a69e70 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 21 Dec 2012 18:57:46 +0000 Subject: [PATCH] Someone optimized some code incorrectly; lines at bottom of calendar where placed off the page svn: r20817 --- src/plugins/drawreport/Calendar.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/drawreport/Calendar.py b/src/plugins/drawreport/Calendar.py index 3f9847c9e..a9828135e 100644 --- a/src/plugins/drawreport/Calendar.py +++ b/src/plugins/drawreport/Calendar.py @@ -248,10 +248,9 @@ class Calendar(Report): last_edge = 0 font_height = pt2cm(1.5 * ptext1style.get_font().get_size()) x = last_edge + (width - last_edge)/2 - y = height - font_height - self.doc.center_text("CAL-Text1style", self.text1, x, y * 3) - self.doc.center_text("CAL-Text2style", self.text2, x, y * 2) - self.doc.center_text("CAL-Text3style", self.text3, x, y * 1) + self.doc.center_text("CAL-Text1style", self.text1, x, height - font_height * 3) + self.doc.center_text("CAL-Text2style", self.text2, x, height - font_height * 2) + self.doc.center_text("CAL-Text3style", self.text3, x, height - font_height * 1) self.doc.end_page() def collect_data(self):