You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by kl...@apache.org on 2001/11/26 22:11:06 UTC
cvs commit: xml-fop/src/org/apache/fop/fo RecursiveCharIterator.java
klease 01/11/26 13:11:06
Modified: src/org/apache/fop/fo RecursiveCharIterator.java
Log:
Fix a small bug in iterator
Revision Changes Path
1.2 +2 -0 xml-fop/src/org/apache/fop/fo/RecursiveCharIterator.java
Index: RecursiveCharIterator.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/RecursiveCharIterator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RecursiveCharIterator.java 2001/11/21 22:13:36 1.1
+++ RecursiveCharIterator.java 2001/11/26 21:11:06 1.2
@@ -32,6 +32,8 @@
public Object clone() {
RecursiveCharIterator ci = (RecursiveCharIterator)super.clone();
ci.childIter = fobj.getChildren(ci.curChild);
+ // Need to advance to the next child, else we get the same one!!!
+ ci.childIter.next();
ci.curCharIter = (CharIterator)curCharIter.clone();
return ci;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org