]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bug 25808 (Patch by Finn Bock) -- NPE Fix to LineLayoutManager.
authorGlen Mazza <gmazza@apache.org>
Fri, 2 Jan 2004 22:51:31 +0000 (22:51 +0000)
committerGlen Mazza <gmazza@apache.org>
Fri, 2 Jan 2004 22:51:31 +0000 (22:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197096 13f79535-47bb-0310-9956-ffa450edef68

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

index 63ba1d2ea5191c8ad0d4ac8795b8f4fd7db9e768..b3d210162aac16e075fe52b72aa0e02947e1e6a9 100644 (file)
@@ -703,6 +703,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager {
             lc.setSpaceAdjust(lbp.dAdjust);
             lc.setIPDAdjust(lbp.ipdAdjust);
             lc.setLeadingSpace(new SpaceSpecifier(true));
+            lc.setTrailingSpace(new SpaceSpecifier(false));
             lc.setFlags(LayoutContext.RESOLVE_LEADING_SPACE, true);
             setChildContext(lc);
             while ((childLM = inlinePosIter.getNextChildLM()) != null) {