From 8ec1a0e041948fe0fc4686a19b84ceee6f7fb9a1 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 29 Jun 2005 12:38:12 +0000 Subject: [PATCH] Accumulate the BPD extent used by the normal flow's children. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@202359 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/area/NormalFlow.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/java/org/apache/fop/area/NormalFlow.java b/src/java/org/apache/fop/area/NormalFlow.java index ce39eb1f7..02b0aac50 100644 --- a/src/java/org/apache/fop/area/NormalFlow.java +++ b/src/java/org/apache/fop/area/NormalFlow.java @@ -32,5 +32,11 @@ public class NormalFlow extends BlockParent { addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE); setIPD(ipd); } + + /** @see org.apache.fop.area.BlockParent#addBlock(org.apache.fop.area.Block) */ + public void addBlock(Block block) { + super.addBlock(block); + bpd += block.getAllocBPD(); + } } -- 2.39.5