Try to avoid a crash regarding illegal paths received from GtkTreeView

This commit is contained in:
René Stadler 2007-11-30 14:15:32 +02:00 committed by Stefan Sauer
parent 5b41b6e861
commit 2eb76b142d

View file

@ -726,6 +726,8 @@ class TimelineFeature (FeatureBase):
if visible_range is None:
return
start_path, end_path = visible_range
if not start_path or not end_path:
return
ts1 = model.get_value (model.get_iter (start_path),
model.COL_TIME)
ts2 = model.get_value (model.get_iter (end_path),