[gs-commits] rev 11757 - trunk/gs/base

mvrhel at ghostscript.com mvrhel at ghostscript.com
Tue Oct 5 20:18:10 UTC 2010


Author: mvrhel
Date: 2010-10-05 20:18:10 +0000 (Tue, 05 Oct 2010)
New Revision: 11757

Modified:
   trunk/gs/base/gsicc_manage.c
Log:
Fix for error in detecting the presence of a device profile set in the command line.  Unfortunately, the device was not being reset from the default profile based upon the setting.

Modified: trunk/gs/base/gsicc_manage.c
===================================================================
--- trunk/gs/base/gsicc_manage.c	2010-10-05 13:57:22 UTC (rev 11756)
+++ trunk/gs/base/gsicc_manage.c	2010-10-05 20:18:10 UTC (rev 11757)
@@ -747,7 +747,9 @@
     } else {
         /* Check for cases where the color model has changed */
         if (dev->device_icc_profile->num_comps != 
-            dev->color_info.num_components) {
+            dev->color_info.num_components || 
+            strncmp(dev->device_icc_profile->name,dev->color_info.icc_profile,
+            dev->device_icc_profile->name_length) != 0 ) {
             /* First go ahead and try to use the profile path that is already 
                given in the dev */
             code = gsicc_set_device_profile(pgs->icc_manager, dev, pgs->memory);



More information about the gs-commits mailing list