diff options
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/fo/expr/ICCColorFunction.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/expr/ICCColorFunction.java b/src/java/org/apache/fop/fo/expr/ICCColorFunction.java index 9e2ef2e7d..1235f4c4f 100644 --- a/src/java/org/apache/fop/fo/expr/ICCColorFunction.java +++ b/src/java/org/apache/fop/fo/expr/ICCColorFunction.java @@ -58,9 +58,11 @@ class ICCColorFunction extends FunctionBase { //a) before the fo:declarations, //b) or in a document without fo:declarations? //=> return the sRGB fallback - Property[] rgbArgs = new Property[3]; - System.arraycopy(args, 0, rgbArgs, 0, 3); - return new RGBColorFunction().eval(rgbArgs, pInfo); + if (!ColorUtil.isPseudoProfile(colorProfileName)) { + Property[] rgbArgs = new Property[3]; + System.arraycopy(args, 0, rgbArgs, 0, 3); + return new RGBColorFunction().eval(rgbArgs, pInfo); + } } else { cp = decls.getColorProfile(colorProfileName); if (cp == null) { |