diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-10-24 13:42:59 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-10-24 13:42:59 +0000 |
commit | 46c9aca22be22f20ed5bddbf21618ed1abdfe287 (patch) | |
tree | cae67b343158bd70928a509150fe283b2c6b5415 /src/java/org/apache/fop/area/Block.java | |
parent | 35516dcedaffc643ae48349c280adcba172c57a2 (diff) | |
download | xmlgraphics-fop-46c9aca22be22f20ed5bddbf21618ed1abdfe287.tar.gz xmlgraphics-fop-46c9aca22be22f20ed5bddbf21618ed1abdfe287.zip |
Fixed a problem where the BPD or a block area could be wrong if there is a nested, absolutely positioned area (for example a block-container).
This was most probably introduced by rev 618992.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@707631 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/Block.java')
-rw-r--r-- | src/java/org/apache/fop/area/Block.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/Block.java b/src/java/org/apache/fop/area/Block.java index 7a2465859..5faec9f7a 100644 --- a/src/java/org/apache/fop/area/Block.java +++ b/src/java/org/apache/fop/area/Block.java @@ -79,7 +79,7 @@ public class Block extends BlockParent { * @param autoHeight increase the height of the block. */ public void addBlock(Block block, boolean autoHeight) { - if (autoHeight && allowBPDUpdate) { + if (autoHeight && allowBPDUpdate && block.isStacked()) { bpd += block.getAllocBPD(); } addChildArea(block); |