Sophie

Sophie

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

ghostscript-10.00.0-6.mga9.src.rpm

From 15561c553c676ed6328d37a2d8455b24dc1f8cd0 Mon Sep 17 00:00:00 2001
From: Michael Vrhel <michael.vrhel@artifex.com>
Date: Mon, 10 Oct 2022 09:12:49 -0700
Subject: [PATCH 138/155] Bug 705965 No color management for All colorant

Make sure we don't apply color management if the separation
color is set to All.
---
 base/gxcmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base/gxcmap.c b/base/gxcmap.c
index 0c7bc7e12..39aff3b2e 100644
--- a/base/gxcmap.c
+++ b/base/gxcmap.c
@@ -1446,7 +1446,7 @@ cmap_separation_direct(frac all, gx_device_color * pdc, const gs_gstate * pgs,
     /* Check if we have the standard colorants.  If yes, then we will apply
       ICC color management to those colorants. */
     if (devicen_has_cmyk(dev, des_profile) && des_profile->data_cs == gsCMYK &&
-        !named_color_supported(pgs)) {
+        !named_color_supported(pgs) && pgs->color_component_map.sep_type != SEP_ALL) {
         /* We need to do a CMYK to CMYK conversion here.  This will always
            use the default CMYK profile and the device's output profile.
            We probably need to add some checking here
-- 
2.30.4