From: Glen Mazza Date: Fri, 2 Jan 2004 22:51:31 +0000 (+0000) Subject: Bug 25808 (Patch by Finn Bock) -- NPE Fix to LineLayoutManager. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~944 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2185a69b4b30b183b550853c3b2ba59ebfc7f39a;p=xmlgraphics-fop.git Bug 25808 (Patch by Finn Bock) -- NPE Fix to LineLayoutManager. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197096 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java index 63ba1d2ea..b3d210162 100644 --- a/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java @@ -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) {