From 0784883ebfd065084867af8957ad353c249f8d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Tue, 18 Dec 2007 17:10:08 +0200 Subject: [PATCH] Fix more problems when clamping with filter turned on --- debug-viewer/GstDebugViewer/GUI.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debug-viewer/GstDebugViewer/GUI.py b/debug-viewer/GstDebugViewer/GUI.py index 6c5849a924..addd86c250 100644 --- a/debug-viewer/GstDebugViewer/GUI.py +++ b/debug-viewer/GstDebugViewer/GUI.py @@ -580,14 +580,16 @@ class FilteredLogModel (FilteredLogModelBase): def __remove_range (self, start, end): + self.logger.debug ("removing line range first = %i, last = %i", + start, end) del self.line_offsets[start:end + 1] del self.line_levels[start:end + 1] for super_index in self.super_index[start:end + 1]: del self.from_super_index[super_index] del self.super_index[start:end + 1] - if start > 0: + if start == 0: for super_index in self.super_index: - self.from_super_index[super_index] -= start + self.from_super_index[super_index] -= end class Filter (object):