]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed regression introduced in rev. 1088079: also remove the element pointed to by...
authorVincent Hennebert <vhennebert@apache.org>
Tue, 5 Apr 2011 10:04:43 +0000 (10:04 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Tue, 5 Apr 2011 10:04:43 +0000 (10:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1088950 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java

index 0ac571adc8187f26e6540b35b22447362283c83c..5e696801d003dce34d0656174aa50ecf8cc12e91 100644 (file)
@@ -27,6 +27,7 @@ import java.util.ListIterator;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+
 import org.apache.fop.area.Area;
 import org.apache.fop.area.LineArea;
 import org.apache.fop.area.Trait;
@@ -613,7 +614,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager
         log.trace("Restarting line breaking from index " + restartPosition.getIndex());
         int parIndex = restartPosition.getLeafPos();
         KnuthSequence paragraph = knuthParagraphs.get(parIndex);
-        paragraph.subList(0, restartPosition.getIndex()).clear();
+        paragraph.subList(0, restartPosition.getIndex() + 1).clear();
         Iterator<KnuthElement> iter = paragraph.iterator();
         while (iter.hasNext() && !iter.next().isBox()) {
             iter.remove();