BUG #0007744 : years are displayed as floating numbers

This commit is contained in:
noirauds 2014-05-25 11:17:35 +02:00
parent a02f76c97f
commit 340aabe210

View File

@ -304,7 +304,7 @@ class TimeLine(Report):
delta = (stop_pos - start_pos)/ 5 delta = (stop_pos - start_pos)/ 5
for val in range(0,6): for val in range(0,6):
xpos = start_pos+(val*delta) xpos = start_pos+(val*delta)
year_str = str(year_low + (incr*val)) year_str = str(int(year_low + (incr*val)))
self.doc.center_text('TLG-label', year_str, xpos, label_y) self.doc.center_text('TLG-label', year_str, xpos, label_y)
def draw_no_date_heading(self): def draw_no_date_heading(self):