From 8fa4de8f9a69ec58e07f0785b17a42f8554d566b Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 21 Dec 2012 18:57:18 +0000 Subject: [PATCH] Someone optimized some code incorrectly; lines at bottom of calendar where placed off the page svn: r20815 --- gramps/plugins/drawreport/calendarreport.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/drawreport/calendarreport.py b/gramps/plugins/drawreport/calendarreport.py index 3145ae36a..2f40fc62b 100644 --- a/gramps/plugins/drawreport/calendarreport.py +++ b/gramps/plugins/drawreport/calendarreport.py @@ -255,10 +255,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):