# HG changeset patch
# User Laurent Bessard
# Date 1367223859 -7200
# Node ID df33bd06990acc4d21ea778b18a522a9e66dae87
# Parent  2a02c6404124a3d2eccf8306a47455f18176e23a
Fixed bug in LogViewer in Log Messages to retrieve index calculation when first SetLogCounters

diff -r 2a02c6404124 -r df33bd06990a 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):