Try to avoid a crash regarding illegal paths received from GtkTreeView
This commit is contained in:
parent
5b41b6e861
commit
2eb76b142d
@ -726,6 +726,8 @@ class TimelineFeature (FeatureBase):
|
|||||||
if visible_range is None:
|
if visible_range is None:
|
||||||
return
|
return
|
||||||
start_path, end_path = visible_range
|
start_path, end_path = visible_range
|
||||||
|
if not start_path or not end_path:
|
||||||
|
return
|
||||||
ts1 = model.get_value (model.get_iter (start_path),
|
ts1 = model.get_value (model.get_iter (start_path),
|
||||||
model.COL_TIME)
|
model.COL_TIME)
|
||||||
ts2 = model.get_value (model.get_iter (end_path),
|
ts2 = model.get_value (model.get_iter (end_path),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user