]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
A little clean-up.
authorJeremias Maerki <jeremias@apache.org>
Mon, 31 Jul 2006 10:15:06 +0000 (10:15 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 31 Jul 2006 10:15:06 +0000 (10:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Floats@427061 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/BeforeFloat.java

index 576e7296f339b056166826b40e4254517d90ea9f..aee86be96ade0726e626f3b38140bae44a1d6776 100644 (file)
@@ -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());
     }
 }