summaryrefslogtreecommitdiff
path: root/devices/gdevplan.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-03-08 14:29:27 +0000
committerRobin Watts <Robin.Watts@artifex.com>2022-03-08 16:15:51 +0000
commit32a6f8989c9e40207e81984c5419381faab716a4 (patch)
treee319619bab40a7ae4aa575306dd17dd53cf40281 /devices/gdevplan.c
parent845f22321c7f1b81a4bede5ee83aada2c2bb5f82 (diff)
downloadghostpdl-32a6f8989c9e40207e81984c5419381faab716a4.tar.gz
Fix plan devices after the fix for Bug 705014.
In order for PostRenderProfiles to allow us to change the number of components in the output, we need to trap and respond to the dev_spec_op.
Diffstat (limited to 'devices/gdevplan.c')
-rw-r--r--devices/gdevplan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/devices/gdevplan.c b/devices/gdevplan.c
index 0cf28518f..abef82957 100644
--- a/devices/gdevplan.c
+++ b/devices/gdevplan.c
@@ -539,6 +539,10 @@ plan_spec_op(gx_device *dev, int op, void *data, int datasize)
int bpc = dev->color_info.depth / dev->color_info.num_components;
return bpc == 8;
}
+ if (op == gxdso_skip_icc_component_validation) {
+ int bpc = dev->color_info.depth / dev->color_info.num_components;
+ return bpc == 8;
+ }
return gdev_prn_dev_spec_op(dev, op, data, datasize);
}