aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-10 20:22:56 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-10 20:22:56 +0000
commitcc09df3c74c65614eb69b1a3479211da7c392477 (patch)
treeaa89d9f3e0975d2b9a8e7a0268f0d75d973bad68 /src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
parent62faf381c6f58bac8af36af0ae5c5240ac33df52 (diff)
downloadxmlgraphics-fop-cc09df3c74c65614eb69b1a3479211da7c392477.tar.gz
xmlgraphics-fop-cc09df3c74c65614eb69b1a3479211da7c392477.zip
When the child LM is a RetrieveMarker, it need a valid parent before
generatesInlineAreas() are called. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198029 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
index 3b08e66c2..53a9919c0 100644
--- a/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
@@ -134,6 +134,7 @@ public class BlockLayoutManager extends BlockStackingLayoutManager {
while (proxyLMiter.hasNext()) {
LayoutManager lm = (LayoutManager) proxyLMiter.next();
+ lm.setParent(this);
if (lm.generatesInlineAreas()) {
LineLayoutManager lineLM = createLineManager(lm);
addChildLM(lineLM);
@@ -160,6 +161,7 @@ public class BlockLayoutManager extends BlockStackingLayoutManager {
inlines.add(firstlm);
while (proxyLMiter.hasNext()) {
LayoutManager lm = (LayoutManager) proxyLMiter.next();
+ lm.setParent(this);
if (lm.generatesInlineAreas()) {
inlines.add(lm);
} else {