svn commit: r675600 - /lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/lcs/FragmentingHandler.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Thu Jul 10 07:48:04 2008
New Revision: 675600

URL: http://svn.apache.org/viewvc?rev=675600&view=rev
Log:
Fixed issue in diff handler fragmentation.

Modified:
    lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/lcs/FragmentingHandler.java

Modified: lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/lcs/FragmentingHandler.java
URL: http://svn.apache.org/viewvc/lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/lcs/FragmentingHandler.java?rev=675600&r1=675599&r2=675600&view=diff
==============================================================================
--- lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/lcs/FragmentingHandler.java (original)
+++ lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/lcs/FragmentingHandler.java Thu Jul 10 07:48:04 2008
@@ -16,8 +16,10 @@
 
     public void added(Object newObj) throws Exception {
         endRemoving();
+        if (state != ADDING) {
+            handler.startAdding();
+        }
         state = ADDING;
-        handler.startAdding();
         handler.element(newObj);
     }
 
@@ -37,7 +39,9 @@
     public void removed(Object oldObj) throws Exception {
         endAdding();
         state = REMOVING;
-        handler.startRemoving();
+        if (state != REMOVING) {
+            handler.startRemoving();
+        }
         handler.element(oldObj);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.