mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +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
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue