Avoid GtkWarning when filtering down to no visible line at all

This commit is contained in:
René Stadler 2007-11-30 17:39:36 +02:00 committed by Stefan Sauer
parent 5f35233eb7
commit 8dbfc09163

View file

@ -498,6 +498,9 @@ class RangeFilteredLogModel (FilteredLogModelBase):
start, end = self.line_index_range
if start == end:
raise IndexError ("not in range (empty)")
if li < start or li > end:
raise IndexError ("not in range")