BUG #0007744 : years are displayed as floating numbers
This commit is contained in:
parent
0e6b71eb6f
commit
23f64a155b
@ -297,7 +297,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):
|
||||||
|
Loading…
Reference in New Issue
Block a user