r22026 by jghali - fix ICC profiles related to PDF export options not being collected by "Collect for Output"

scribus-commit scribus-commit at lists.scribus.net
Mon May 15 20:19:18 UTC 2017


Author: jghali
Date: Mon May 15 20:19:18 2017
New Revision: 22026

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22026
Log:
fix ICC profiles related to PDF export options not being collected by "Collect for Output"

Modified:
    branches/Version14x/Scribus/scribus/scribusdoc.cpp

Modified: branches/Version14x/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22026&path=/branches/Version14x/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribusdoc.cpp	(original)
+++ branches/Version14x/Scribus/scribus/scribusdoc.cpp	Mon May 15 20:19:18 2017
@@ -3320,14 +3320,21 @@
 
 	profileNames.append(CMSSettings.DefaultSolidColorRGBProfile);
 	profileNames.append(CMSSettings.DefaultSolidColorCMYKProfile);
-	if( profileNames.indexOf(CMSSettings.DefaultImageRGBProfile) < 0 )
+	if (profileNames.indexOf(CMSSettings.DefaultImageRGBProfile) < 0)
 		profileNames.append(CMSSettings.DefaultImageRGBProfile);
-	if( profileNames.indexOf(CMSSettings.DefaultImageCMYKProfile) < 0 )
+	if (profileNames.indexOf(CMSSettings.DefaultImageCMYKProfile) < 0)
 		profileNames.append(CMSSettings.DefaultImageCMYKProfile);
-	if( profileNames.indexOf(CMSSettings.DefaultMonitorProfile) < 0 )
+	if (profileNames.indexOf(CMSSettings.DefaultMonitorProfile) < 0)
 		profileNames.append(CMSSettings.DefaultMonitorProfile);
-	if( profileNames.indexOf(CMSSettings.DefaultPrinterProfile) < 0 )
+	if (profileNames.indexOf(CMSSettings.DefaultPrinterProfile) < 0)
 		profileNames.append(CMSSettings.DefaultPrinterProfile);
+
+	if (profileNames.indexOf(PDF_Options.SolidProf) < 0)
+		profileNames.append(PDF_Options.SolidProf);
+	if (profileNames.indexOf(PDF_Options.ImageProf) < 0)
+		profileNames.append(PDF_Options.ImageProf);
+	if (profileNames.indexOf(PDF_Options.PrintProf) < 0)
+		profileNames.append(PDF_Options.PrintProf);
 	
 	for (uint lc = 0; lc < 3; ++lc)
 	{




More information about the scribus-commit mailing list