svn commit: r675600 - /lenya/docu/modules/diff/java/src/org/apache/lenya/modules/diff/lcs/FragmentingHandler.java
[email protected] Thu, 10 Jul 2008 14:48:05 -0000
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);
}