summaryrefslogtreecommitdiff
path: root/base/gsicc.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2021-06-17 16:29:29 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2021-06-17 16:34:10 -0700
commit51345d5dbff280e71172af7930922db8219d32cf (patch)
tree624b2348f55e16f5e8347b346432a0c84981811b /base/gsicc.c
parent735da4be3d29d0d913bd25a1a879227f0fa322dd (diff)
downloadghostpdl-51345d5dbff280e71172af7930922db8219d32cf.tar.gz
Make sure CIELAB processing sets all components
Another case of components outside the ICC ones not getting set.
Diffstat (limited to 'base/gsicc.c')
-rw-r--r--base/gsicc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/gsicc.c b/base/gsicc.c
index 2624ce6e3..d8e2bd3a5 100644
--- a/base/gsicc.c
+++ b/base/gsicc.c
@@ -539,9 +539,13 @@ gx_remap_ICC_imagelab(const gs_client_color * pcc, const gs_color_space * pcs,
the transfer function and potentially the halftoning */
/* Right now we need to go from unsigned short to frac. I really
would like to avoid this sort of stuff. That will come. */
- for ( k = 0; k < num_des_comps; k++){
+ for (k = 0; k < num_des_comps; k++){
conc[k] = ushort2frac(psrc_temp[k]);
}
+ /* We have to worry about extra colorants in the device. */
+ for (k = num_des_comps; k < dev->color_info.num_components; k++) {
+ conc[k] = 0;
+ }
gx_remap_concrete_ICC(pcs, conc, pdc, pgs, dev, select, dev_profile);
/* Save original color space and color info into dev color */