logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r966979 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
Date Fri, 23 Jul 2010 06:01:08 GMT
Author: sdeboy
Date: Fri Jul 23 06:01:08 2010
New Revision: 966979

URL: http://svn.apache.org/viewvc?rev=966979&view=rev
Log:
Hidden logger nodes on Mac don't show up as highlighted unless a new font is used

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

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java?rev=966979&r1=966978&r2=966979&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
(original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
Fri Jul 23 06:01:08 2010
@@ -1504,7 +1504,7 @@ final class LoggerNameTreePanel extends 
         (JLabel) super.getTreeCellRendererComponent(
           tree, value, sel, expanded, leaf, row, focus);
 
-      Font originalFont = component.getFont();
+      Font originalFont = new Font(component.getFont().getName(), component.getFont().getStyle(),
component.getFont().getSize());
 
       int style = Font.PLAIN;
 



Mime
View raw message