summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/gstext.c')
-rw-r--r--base/gstext.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/gstext.c b/base/gstext.c
index c1fea18f..bb258d39 100644
--- a/base/gstext.c
+++ b/base/gstext.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2019 Artifex Software, Inc.
+/* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -340,7 +340,9 @@ gs_text_begin(gs_gstate * pgs, const gs_text_params_t * text,
cmm_dev_profile_t* dev_profile;
dev_proc(dev, get_profile)(dev, &dev_profile);
- if (dev_profile->sim_overprint && dev_profile->device_profile[0]->data_cs == gsCMYK) {
+ if (dev_profile->sim_overprint &&
+ (dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE]->data_cs == gsCMYK ||
+ dev_profile->device_profile[GS_DEFAULT_DEVICE_PROFILE]->data_cs == gsNCHANNEL)) {
if (pgs->text_rendering_mode == 0) {
op_params.op_state = OP_STATE_FILL;
gs_gstate_update_overprint(pgs, &op_params);