aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/pagination/Region.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-11-29 15:52:14 +0000
committerJeremias Maerki <jeremias@apache.org>2005-11-29 15:52:14 +0000
commitb8ea9fe727c78df1f616bcb5ae9cfe38ea80c459 (patch)
treefad4486e5bb3674e2478d8fbfce49909079de306 /src/java/org/apache/fop/fo/pagination/Region.java
parent4b25bf0d2bc361499a1d3b7fda8ab8e75b6a74ab (diff)
downloadxmlgraphics-fop-b8ea9fe727c78df1f616bcb5ae9cfe38ea80c459.tar.gz
xmlgraphics-fop-b8ea9fe727c78df1f616bcb5ae9cfe38ea80c459.zip
Relaxed validation for border and padding on region-*.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@349740 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/Region.java')
-rw-r--r--src/java/org/apache/fop/fo/pagination/Region.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/Region.java b/src/java/org/apache/fop/fo/pagination/Region.java
index 281dc297d..65412a6d5 100644
--- a/src/java/org/apache/fop/fo/pagination/Region.java
+++ b/src/java/org/apache/fop/fo/pagination/Region.java
@@ -82,8 +82,9 @@ public abstract class Region extends FObj {
}
//TODO do we need context for getBPPaddingAndBorder() and getIPPaddingAndBorder()?
- if (getCommonBorderPaddingBackground().getBPPaddingAndBorder(false, null) != 0
- || getCommonBorderPaddingBackground().getIPPaddingAndBorder(false, null) != 0) {
+ if (getUserAgent().validateStrictly()
+ && (getCommonBorderPaddingBackground().getBPPaddingAndBorder(false, null) != 0
+ || getCommonBorderPaddingBackground().getIPPaddingAndBorder(false, null) != 0)) {
throw new PropertyException("Border and padding for region \""
+ regionName + "\" must be '0' (See 6.4.13 in XSL 1.0).");
}