logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r928350 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java
Date Sun, 28 Mar 2010 06:04:32 GMT
Author: sdeboy
Date: Sun Mar 28 06:04:32 2010
New Revision: 928350

URL: http://svn.apache.org/viewvc?rev=928350&view=rev
Log:
Use the log4jid property to navigate to the closest row in the thumbnail, not the row number
(rownumber only matches log4jid if there is no 'refine focus' active)

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java?rev=928350&r1=928349&r2=928350&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java (original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java Sun Mar 28
06:04:32 2010
@@ -3078,7 +3078,8 @@ public class LogPanel extends DockablePa
                     int rowToSelect = (int)(rowCount * ratio);
                     EventWrapper event = getClosestRow(rowToSelect);
                     if (event != null) {
-                        setSelectedEvent(event.rowNum + 1);
+                        int id = new Integer(event.loggingEvent.getProperty("log4jid")).intValue();
+                        setSelectedEvent(id);
                     }
                 }
             });



Mime
View raw message