aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/fo/pagination/Region.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/Region.java b/src/java/org/apache/fop/fo/pagination/Region.java
index e0054285a..281dc297d 100644
--- a/src/java/org/apache/fop/fo/pagination/Region.java
+++ b/src/java/org/apache/fop/fo/pagination/Region.java
@@ -81,10 +81,11 @@ public abstract class Region extends FObj {
}
}
- if (getCommonBorderPaddingBackground().getBPPaddingAndBorder(false, null) != 0 //TODO do we need context here?
- || getCommonBorderPaddingBackground().getIPPaddingAndBorder(false, null) != 0) { //TODO do we need context here?
+ //TODO do we need context for getBPPaddingAndBorder() and getIPPaddingAndBorder()?
+ if (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).");
+ + regionName + "\" must be '0' (See 6.4.13 in XSL 1.0).");
}
}