BUG #0007744 : years are displayed as floating numbers

This commit is contained in:
noirauds 2014-05-25 11:24:16 +02:00
parent 0e6b71eb6f
commit 23f64a155b

View File

@ -297,7 +297,7 @@ class TimeLine(Report):
delta = (stop_pos - start_pos)/ 5
for val in range(0,6):
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)
def draw_no_date_heading(self):