]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Accumulate the BPD extent used by the normal flow's children.
authorJeremias Maerki <jeremias@apache.org>
Wed, 29 Jun 2005 12:38:12 +0000 (12:38 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 29 Jun 2005 12:38:12 +0000 (12:38 +0000)
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

index ce39eb1f775ad8b0d9a2a5dcc90a060641ff4b31..02b0aac5066f8a0ba2f09f492708a6fce35436d7 100644 (file)
@@ -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();
+    }
 }