Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > d3fc76fe325ca661cb5adbf012153e1c > files > 2

ghostscript-10.00.0-6.mga9.src.rpm

From ccd19e60aebfa6262d0bd08a0b6c6c84c969e922 Mon Sep 17 00:00:00 2001
From: Michael Vrhel <michael.vrhel@artifex.com>
Date: Fri, 16 Sep 2022 12:53:17 -0700
Subject: [PATCH 091/155] Bug 705703: psdcmyktags and psdcmyktags16

The tags name is included in the list of process colorants.
Later the tags plane is stuck at the end of the list of planes
though. This was causing indexing issues when we added newly encountered
spot colors.
---
 base/gdevdevn.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/base/gdevdevn.c b/base/gdevdevn.c
index b11594ce6..d2c522b3d 100644
--- a/base/gdevdevn.c
+++ b/base/gdevdevn.c
@@ -236,6 +236,12 @@ check_pcm_and_separation_names(const gx_device * dev,
             color_component_number++;
         }
     }
+    /* For some devices, Tags is part of the process color model list. If so,
+     * that throws us off here since it is thrown at the end of the list. Adjust. */
+    if (device_encodes_tags(dev)) {
+        color_component_number--;
+    }
+
     return check_separation_names(dev, pparams, pname, name_size,
         component_type, color_component_number);
 }
-- 
2.30.4