summaryrefslogtreecommitdiff
path: root/base/gstext.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2020-05-11 11:08:26 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2020-05-11 11:08:26 -0700
commitae6b0b0e768f618728f66580227fffc92896903c (patch)
tree0a8d479fe661ea072940e1036673bb875f3e8cf4 /base/gstext.c
parent2bb52bc877645068977c17c8a433e5b959b51eba (diff)
downloadghostpdl-ae6b0b0e768f618728f66580227fffc92896903c.tar.gz
Remove "magic numbers" from profile type selection
Diffstat (limited to 'base/gstext.c')
-rw-r--r--base/gstext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gstext.c b/base/gstext.c
index b2dea579f..bb258d39f 100644
--- a/base/gstext.c
+++ b/base/gstext.c
@@ -341,8 +341,8 @@ gs_text_begin(gs_gstate * pgs, const gs_text_params_t * text,
dev_proc(dev, get_profile)(dev, &dev_profile);
if (dev_profile->sim_overprint &&
- (dev_profile->device_profile[0]->data_cs == gsCMYK ||
- dev_profile->device_profile[0]->data_cs == gsNCHANNEL)) {
+ (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);