Someone optimized some code incorrectly; lines at bottom of calendar where placed off the page

svn: r20816
This commit is contained in:
Doug Blank 2012-12-21 18:57:32 +00:00
parent 2033fd6567
commit e1ab03348e

View File

@ -255,10 +255,9 @@ class Calendar(Report):
last_edge = 0 last_edge = 0
font_height = pt2cm(1.5 * ptext1style.get_font().get_size()) font_height = pt2cm(1.5 * ptext1style.get_font().get_size())
x = last_edge + (width - last_edge)/2 x = last_edge + (width - last_edge)/2
y = height - font_height self.doc.center_text("CAL-Text1style", self.text1, x, height - font_height * 3)
self.doc.center_text("CAL-Text1style", self.text1, x, y * 3) self.doc.center_text("CAL-Text2style", self.text2, x, height - font_height * 2)
self.doc.center_text("CAL-Text2style", self.text2, x, y * 2) self.doc.center_text("CAL-Text3style", self.text3, x, height - font_height * 1)
self.doc.center_text("CAL-Text3style", self.text3, x, y * 1)
self.doc.end_page() self.doc.end_page()
def collect_data(self): def collect_data(self):