diff options
author | Simon Steiner <ssteiner@apache.org> | 2022-07-12 13:08:29 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2022-07-12 13:08:29 +0000 |
commit | b063d27e718e0a307f566b483e4e358e81939b05 (patch) | |
tree | ea69b7d4eee755f4a0a710a881fb6f647385771c /fop-core/src/main | |
parent | b91fc313ebc360793966acaba52624cc7f2436ed (diff) | |
download | xmlgraphics-fop-b063d27e718e0a307f566b483e4e358e81939b05.tar.gz xmlgraphics-fop-b063d27e718e0a307f566b483e4e358e81939b05.zip |
FOP-3081: Fix change ipd for linefeed-treatment=preserve
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1902677 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core/src/main')
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java index e135b4310..260c01c4e 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java @@ -653,6 +653,12 @@ public class LineLayoutManager extends InlineStackingLayoutManager LeafPosition restartPosition) { log.trace("Restarting line breaking from index " + restartPosition.getIndex()); int parIndex = restartPosition.getLeafPos(); + + for (int i = 0; i < parIndex; i++) { + knuthParagraphs.remove(0); + } + parIndex = 0; + KnuthSequence paragraph = knuthParagraphs.get(parIndex); if (paragraph instanceof Paragraph) { ((Paragraph) paragraph).ignoreAtStart = 0; |