Fixed bug log viewer not scrolling when clicking on +1s and +1m when time between 2 message is greater than 1s or 1m
authorLaurent Bessard
Sat, 06 Apr 2013 11:56:24 +0200
changeset 1020 2d20f25cd39f
parent 1019 e5686874eaef
child 1021 939b1a1c7aa5
Fixed bug log viewer not scrolling when clicking on +1s and +1m when time between 2 message is greater than 1s or 1m
controls/LogViewer.py
--- a/controls/LogViewer.py	Fri Apr 05 08:11:27 2013 +0200
+++ b/controls/LogViewer.py	Sat Apr 06 11:56:24 2013 +0200
@@ -573,6 +573,8 @@
             if message is None or self.IsMessagePanelBottom(msgidx):
                 self.ScrollToFirst()
             else:
+                if seconds > 0 and self.CurrentMessage == msgidx and msgidx < len(self.LogMessages) - 1:
+                    msgidx += 1
                 self.CurrentMessage = msgidx
                 self.RefreshView()