From: Jeremias Maerki Date: Wed, 29 Jun 2005 12:38:12 +0000 (+0000) Subject: Accumulate the BPD extent used by the normal flow's children. X-Git-Tag: fop-0_90-alpha1~524 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ec1a0e041948fe0fc4686a19b84ceee6f7fb9a1;p=xmlgraphics-fop.git 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 --- 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(); + } }