aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Bernard West <pbwest@apache.org>2004-07-24 16:57:02 +0000
committerPeter Bernard West <pbwest@apache.org>2004-07-24 16:57:02 +0000
commit2d0de6d421a82f49d8e465a53588061b9f85087a (patch)
tree7acddd0a4c506958fb8333ea15ae992fac6a8814
parentd9b38a9c8c450b8951350974310d3a4557a788c2 (diff)
downloadxmlgraphics-fop-2d0de6d421a82f49d8e465a53588061b9f85087a.tar.gz
xmlgraphics-fop-2d0de6d421a82f49d8e465a53588061b9f85087a.zip
Override setContents() to trigger update of borders
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197831 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/area/PaddingRectangle.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/PaddingRectangle.java b/src/java/org/apache/fop/area/PaddingRectangle.java
index 2e72d2ca5..065b2165f 100644
--- a/src/java/org/apache/fop/area/PaddingRectangle.java
+++ b/src/java/org/apache/fop/area/PaddingRectangle.java
@@ -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