[gs-cvs] rev 7858 - trunk/gs/src

tim at ghostscript.com tim at ghostscript.com
Mon Apr 16 17:25:39 PDT 2007


Author: tim
Date: 2007-04-16 17:25:38 -0700 (Mon, 16 Apr 2007)
New Revision: 7858

Modified:
   trunk/gs/src/gscdevn.c
Log:
This is a patch for bug report #689171.

DETAILS:
With this fix, DeviceN colors with a DeviceCMYK base color, will be treated as
DeviceCMYK in regards to overprint.

EXPECTED DIFFERENCES:
None. As far as I know, now jobs in the regression suite reproduce this problem.



Modified: trunk/gs/src/gscdevn.c
===================================================================
--- trunk/gs/src/gscdevn.c	2007-04-17 00:02:10 UTC (rev 7857)
+++ trunk/gs/src/gscdevn.c	2007-04-17 00:25:38 UTC (rev 7858)
@@ -549,8 +549,15 @@
 {
     gs_devicen_color_map *  pcmap = &pgs->color_component_map;
 
-    if (pcmap->use_alt_cspace)
-        return gx_spot_colors_set_overprint( pcs->base_space, pgs);
+    if (pcmap->use_alt_cspace) {
+    	const gs_color_space_type* base_type = pcs->base_space->type;
+    	
+    	/* If the base space is DeviceCMYK, handle overprint as DeviceCMYK */
+    	if ( base_type->index == gs_color_space_index_DeviceCMYK )
+    		return base_type->set_overprint( pcs->base_space, pgs );
+    	else
+    		return gx_spot_colors_set_overprint( pcs->base_space, pgs);
+    }
     else {
         gs_overprint_params_t   params;
 



More information about the gs-cvs mailing list