]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Two Knuth boxes following each other should only be considered for an additional...
authorManuel Mall <manuel@apache.org>
Sun, 14 Jan 2007 02:37:32 +0000 (02:37 +0000)
committerManuel Mall <manuel@apache.org>
Sun, 14 Jan 2007 02:37:32 +0000 (02:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@496020 13f79535-47bb-0310-9956-ffa450edef68

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

index f4480c4e99cbc8a3878fbdd065774d4891107555..f4a83e0fec71ddb42bfb6d04c2df2b8acf54a764 100644 (file)
@@ -708,7 +708,9 @@ public class LineLayoutManager extends InlineStackingLayoutManager
                         throw new NullPointerException(
                         "Sequence was empty! lastElement is null");
                     }
-                    bPrevWasKnuthBox = lastElement.isBox() && ((KnuthElement) lastElement).getW() != 0;
+                    bPrevWasKnuthBox = lastElement.isBox() 
+                                        && !((KnuthElement) lastElement).isAuxiliary() 
+                                        && ((KnuthElement) lastElement).getW() != 0;
                     
                     // if last paragraph is open, add the new elements to the paragraph
                     // else this is the last paragraph