mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
Fix crash when displaying only one line
This commit is contained in:
parent
4a2c020660
commit
5f35233eb7
1 changed files with 2 additions and 1 deletions
|
@ -289,9 +289,10 @@ class VerticalTimelineWidget (gtk.DrawingArea):
|
||||||
return
|
return
|
||||||
|
|
||||||
first_y, cell_height, data = self.params
|
first_y, cell_height, data = self.params
|
||||||
|
if len (data) < 2:
|
||||||
|
return
|
||||||
first_ts, last_ts = data[0][0], data[-1][0]
|
first_ts, last_ts = data[0][0], data[-1][0]
|
||||||
ts_range = last_ts - first_ts
|
ts_range = last_ts - first_ts
|
||||||
|
|
||||||
if ts_range == 0:
|
if ts_range == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue