r14024 by jghali - discard icc profiles which do not contain a valid description string

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 22 09:15:17 CEST 2009


Revision: 14024
Author: jghali
Date: 2009-09-22T07:15:47.770314Z
Commit message: discard icc profiles which do not contain a valid description string

Changeset: 
M  /branches/Version133x/Scribus/scribus/scribus.cpp

Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp	(revision 14023)
+++ scribus/scribus.cpp	(revision 14024)
@@ -8133,6 +8133,13 @@
 					continue;
 				Descriptor = cmsTakeProductDesc(hIn);
 				nam = QString(Descriptor);
+				if (nam.isEmpty())
+				{
+					cmsCloseProfile(hIn);
+					if (showInfo)
+						sDebug(QString("Color profile %s is broken : no valid description").arg(fi.filePath()));
+					continue;
+				}
 				switch (static_cast<int>(cmsGetDeviceClass(hIn)))
 				{
 				case icSigInputClass:




More information about the scribus-commit mailing list