]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Override setContents() to trigger update of borders
authorPeter Bernard West <pbwest@apache.org>
Sat, 24 Jul 2004 16:57:02 +0000 (16:57 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sat, 24 Jul 2004 16:57:02 +0000 (16:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197831 13f79535-47bb-0310-9956-ffa450edef68

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

index 2e72d2ca568d5e7bf6638a90759fe96c8b266749..065b2165fbd901c4b8d1133964a28e57573660f4 100644 (file)
@@ -21,6 +21,7 @@ package org.apache.fop.area;
 
 import java.awt.geom.Point2D;
 import java.awt.geom.Rectangle2D;
+import org.apache.fop.area.Area.AreaGeometry;
 
 /**
  * @author pbw
@@ -81,6 +82,11 @@ public class PaddingRectangle extends AreaFrame {
         return borders;
     }
 
+    public void setContents(AreaGeometry contents) {
+        super.setContents(contents);
+        borders.setContents(this);
+    }
+
     /**
      * {@inheritDoc}
      * <p>The containing <code>BorderRectangle</code> is notified of the