aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2009-11-23 11:46:55 +0000
committerVincent Hennebert <vhennebert@apache.org>2009-11-23 11:46:55 +0000
commitc161b98d6d5e129705cd51e28ac912508771076e (patch)
tree561a07e887d42f36f1463c8aa9c39f774e10aedf /src/java/org/apache/fop
parent1bc82acecdfd8d7f59641ec40e969c47cc740bd6 (diff)
downloadxmlgraphics-fop-c161b98d6d5e129705cd51e28ac912508771076e.tar.gz
xmlgraphics-fop-c161b98d6d5e129705cd51e28ac912508771076e.zip
Bugzilla #48167: when #CMYK pseudo-profile was used in the rgb-icc() function, always the fallback RGB colors were used instead.
Patch submitted by Venkat Reddy git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@883310 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/fo/expr/ICCColorFunction.java8
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) {