aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/Block.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-10-24 13:42:59 +0000
committerJeremias Maerki <jeremias@apache.org>2008-10-24 13:42:59 +0000
commit46c9aca22be22f20ed5bddbf21618ed1abdfe287 (patch)
treecae67b343158bd70928a509150fe283b2c6b5415 /src/java/org/apache/fop/area/Block.java
parent35516dcedaffc643ae48349c280adcba172c57a2 (diff)
downloadxmlgraphics-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.java2
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);