From 2d0de6d421a82f49d8e465a53588061b9f85087a Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sat, 24 Jul 2004 16:57:02 +0000 Subject: 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 --- src/java/org/apache/fop/area/PaddingRectangle.java | 6 ++++++ 1 file changed, 6 insertions(+) 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} *

The containing BorderRectangle is notified of the -- cgit v1.2.3