summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */