logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r936150 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
Date Wed, 21 Apr 2010 03:42:25 GMT
Author: sdeboy
Date: Wed Apr 21 03:42:25 2010
New Revision: 936150

URL: http://svn.apache.org/viewvc?rev=936150&view=rev
Log:
Minor change to tableModel refilter/rowupdate logic

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

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java?rev=936150&r1=936149&r2=936150&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
(original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
Wed Apr 21 03:42:25 2010
@@ -148,8 +148,10 @@ class ChainsawCyclicBufferTableModel ext
 	      				fireTableRowsDeleted(filteredList.size(), previousSize);
 	      			} else if (previousSize < filteredList.size()) {
 	      				//more now..update and insert difference
-	      				fireTableRowsUpdated(0, Math.max(0, previousSize - 1));
-	      				fireTableRowsInserted(previousSize, filteredList.size() - 1);
+                        if (previousSize > 0) {
+	      				    fireTableRowsUpdated(0, previousSize - 1);
+                        }
+	      				fireTableRowsInserted(Math.max(0, previousSize), filteredList.size() - 1);
 	      			}
       			} else {
       				//no rows to show



Mime
View raw message