summaryrefslogtreecommitdiff
path: root/devices/gdevpsd.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2019-01-31 16:34:30 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2019-02-07 12:27:26 -0800
commitf10f2900633674746f6a8155200f24db51449523 (patch)
tree1a6b4649f2d045b36efe09fae68df905ad76e8e1 /devices/gdevpsd.c
parent5daf81e0edb5dee2911bf419fa2423b2588449ab (diff)
downloadghostpdl-f10f2900633674746f6a8155200f24db51449523.tar.gz
Bug 696318: psdrgb device
With certain postscript files, the psdrgb device was getting its process color model changed causing significant confusion for the device.
Diffstat (limited to 'devices/gdevpsd.c')
-rw-r--r--devices/gdevpsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/devices/gdevpsd.c b/devices/gdevpsd.c
index cd523c7d6..646ba758d 100644
--- a/devices/gdevpsd.c
+++ b/devices/gdevpsd.c
@@ -833,7 +833,9 @@ psd_put_params_generic(gx_device * pdev, gs_param_list * plist, int cmyk)
if (code >= 0)
code = param_read_name(plist, "ProcessColorModel", &pcm);
- if (code == 0) {
+
+ /* Bug 696318. Don't allow process color model change for RGB device */
+ if (code == 0 && color_model != psd_DEVICE_RGB) {
if (param_string_eq (&pcm, "DeviceGray"))
color_model = psd_DEVICE_GRAY;
else if (param_string_eq (&pcm, "DeviceRGB"))