aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/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).");
}