Fix crash when displaying only one line

This commit is contained in:
René Stadler 2007-11-30 17:33:08 +02:00 committed by Stefan Sauer
parent 4a2c020660
commit 5f35233eb7

View file

@ -289,9 +289,10 @@ class VerticalTimelineWidget (gtk.DrawingArea):
return
first_y, cell_height, data = self.params
if len (data) < 2:
return
first_ts, last_ts = data[0][0], data[-1][0]
ts_range = last_ts - first_ts
if ts_range == 0:
return