From de5e233766468bc13c24de8670b5475b7b65cbb0 Mon Sep 17 00:00:00 2001 From: theli Date: Sat, 14 Oct 2006 13:06:08 +0000 Subject: [PATCH] *) Bugfix for GuiHandler sorting problem git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2773 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/server/logging/GuiHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/server/logging/GuiHandler.java b/source/de/anomic/server/logging/GuiHandler.java index 4770c15fa..9fc150995 100644 --- a/source/de/anomic/server/logging/GuiHandler.java +++ b/source/de/anomic/server/logging/GuiHandler.java @@ -193,10 +193,12 @@ public class GuiHandler extends Handler{ if ((lineCount > this.count)||(lineCount < 0)) lineCount = this.count; ArrayList logMessages = new ArrayList(this.count); + logMessages.add("Testmessage:\r\nline1\r\nline2"); + Formatter logFormatter = getFormatter(); try { - int theStart = (reversed)?this.start+lineCount-1:this.start; + int theStart = (reversed)?this.start+this.count-1:this.start+this.count-lineCount; LogRecord record=null; for (int i = 0; i < lineCount; i++) { int ix = (reversed) ?