diff options
author | René Stadler <mail@renestadler.de> | 2008-01-21 11:15:42 +0200 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2008-01-21 11:15:42 +0200 |
commit | cdd7b10c9aa23bb7b1ffe6532205305828617f68 (patch) | |
tree | c9ed2964632b8d1cb3b9b479fb588e794642ae6c /GstDebugViewer | |
parent | 1f2c6d0640a14adca86b71a2563f30da7239159b (diff) |
Fix filtered range transformation (finally!)
Diffstat (limited to 'GstDebugViewer')
-rw-r--r-- | GstDebugViewer/GUI.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/GstDebugViewer/GUI.py b/GstDebugViewer/GUI.py index 28309b4..90bc258 100644 --- a/GstDebugViewer/GUI.py +++ b/GstDebugViewer/GUI.py @@ -612,13 +612,14 @@ class FilteredLogModel (FilteredLogModelBase): if super_start_offset > 0: if not self.super_index: # Identity; there are no filters. - start_offset = super_start_offset + n_filtered = super_start_offset + start_offset = n_filtered else: - n_filtered = self.__filtered_indices_in_range (old_start, super_start - 1) - assert n_filtered > 0 + n_filtered = self.__filtered_indices_in_range (0, super_start_offset - 1) start_offset = n_filtered - self.__remove_range (0, start_offset - 1) + if n_filtered > 0: + self.__remove_range (0, start_offset - 1) from_super = self.from_super_index for i in self.super_index: |