]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix for bug 36007.
authorLuca Furini <lfurini@apache.org>
Thu, 4 Aug 2005 10:31:13 +0000 (10:31 +0000)
committerLuca Furini <lfurini@apache.org>
Thu, 4 Aug 2005 10:31:13 +0000 (10:31 +0000)
The list of elements created by the LineLM was incomplete.
Thanks to Manuel Mall for signaling the bug and providing testcases.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227342 13f79535-47bb-0310-9956-ffa450edef68

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

index cd136bd40f6b204b6df5b635c38393e14db1f4a5..c3091d66c7dffbfa04c5f41165a92ae38c6bf099 100644 (file)
@@ -629,6 +629,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager
                         oldList.add(prevBox);
                         oldList.addFirst((KnuthGlue) knuthPar.removeLast());
                         oldList.addFirst((KnuthPenalty) knuthPar.removeLast());
+                        oldList.addFirst((KnuthBox) knuthPar.removeLast());
                     }
                     // adding a letter space could involve, according to the text
                     // represented by oldList, replacing a glue element or adding