Fixed bug in LogViewer in Log Messages to retrieve index calculation when first SetLogCounters
authorLaurent Bessard
Mon, 29 Apr 2013 10:24:19 +0200
changeset 1077 df33bd06990a
parent 1076 2a02c6404124
child 1078 f0ea86d830ed
Fixed bug in LogViewer in Log Messages to retrieve index calculation when first SetLogCounters
controls/LogViewer.py
--- a/controls/LogViewer.py	Mon Apr 29 09:09:07 2013 +0200
+++ b/controls/LogViewer.py	Mon Apr 29 10:24:19 2013 +0200
@@ -396,7 +396,7 @@
         for level, count, prev in zip(xrange(LogLevelsCount), log_count, self.previous_log_count):
             if count is not None and prev != count:
                 if prev is None:
-                    dump_end = count - 2
+                    dump_end = count - 1
                 else:
                     dump_end = prev - 1
                 for msgidx in xrange(count-1, dump_end,-1):