From: Jeremias Maerki Date: Mon, 31 Jul 2006 10:15:06 +0000 (+0000) Subject: A little clean-up. X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa2d0f609cddd9c08b64ed39f0cf827cb512ef63;p=xmlgraphics-fop.git A little clean-up. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@427061 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/area/BeforeFloat.java b/src/java/org/apache/fop/area/BeforeFloat.java index 576e7296f..aee86be96 100644 --- a/src/java/org/apache/fop/area/BeforeFloat.java +++ b/src/java/org/apache/fop/area/BeforeFloat.java @@ -47,28 +47,13 @@ public class BeforeFloat extends BlockParent { return separator; } - /** - * Get the height of this before float. - * It gets the height of the children and if there is a - * separator its height is also added. - * - * @return the height of the before float including separator - */ -// public int getBPD() { -// int h = super.getBPD(); -// if (separator != null) { -// h += separator.getBPD(); -// } -// return h; -// } - /** * Add a block area as child to the footnote area * * @param child the block area. */ public void addBlock(Block child) { - addChildArea(child); + super.addBlock(child); this.setBPD(this.getBPD() + child.getBPD()); } }