diff options
author | Glen Mazza <gmazza@apache.org> | 2004-03-21 17:31:29 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-03-21 17:31:29 +0000 |
commit | ed8ef9c3e3ca71e5a25d4abe6196413259ce7b50 (patch) | |
tree | addb07ef1f42bac9449e0638c3012258ec7bb104 /src | |
parent | 2e9f66f684d857e38a8d2ea5dd987936b79ba454 (diff) | |
download | xmlgraphics-fop-ed8ef9c3e3ca71e5a25d4abe6196413259ce7b50.tar.gz xmlgraphics-fop-ed8ef9c3e3ca71e5a25d4abe6196413259ce7b50.zip |
Fix to get use-content option of fo:leader working again. leader.fo now
runs without error.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197468 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/AddLMVisitor.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java index ed359886c..6d56e6f99 100644 --- a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java +++ b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java @@ -294,7 +294,7 @@ public class AddLMVisitor implements FOTreeVisitor { public void serveLeader(final Leader node) { LeafNodeLayoutManager lm = new LeafNodeLayoutManager() { public InlineArea get(LayoutContext context) { - return getLeaderInlineArea(node); + return getLeaderInlineArea(node, this); } protected MinOptMax getAllocationIPD(int refIPD) { @@ -322,7 +322,7 @@ public class AddLMVisitor implements FOTreeVisitor { return new MinOptMax(min, opt, max); } - private InlineArea getLeaderInlineArea(Leader node) { + private InlineArea getLeaderInlineArea(Leader node, LayoutManager parentLM) { node.setup(); InlineArea leaderArea = null; @@ -375,6 +375,7 @@ public class AddLMVisitor implements FOTreeVisitor { FilledArea fa = new FilledArea(); ContentLayoutManager clm = new ContentLayoutManager(fa); + clm.setParent(parentLM); clm.setUserAgent(node.getUserAgent()); lm.setParent(clm); |