Fix for CMYK ICC colors which were rendered in DeviceCMYK.
Submitted by: Peter Coppens <pc.subscriptions.at.gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@474327
13f79535-47bb-0310-9956-
ffa450edef68
import java.util.List;
import java.util.ArrayList;
+import org.apache.fop.util.CMYKColorSpace;
import org.apache.fop.util.ColorExt;
/**
ce = (ColorExt)col;
cs = ce.getOrigColorSpace();
}
- if (cs != null && cs.getType() == ColorSpace.TYPE_CMYK) {
+ if (cs != null && cs instanceof CMYKColorSpace) {
// CMYK case
this.colorSpace = new PDFDeviceColorSpace(PDFDeviceColorSpace.DEVICE_CMYK);
float[] cmyk = (ce == null