r14025 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:29 CEST 2009
Revision: 14025
Author: jghali
Date: 2009-09-22T07:16:33.669727Z
Commit message: discard icc profiles which do not contain a valid description string
Changeset:
M /branches/Version135/Scribus/scribus/scribuscore.cpp
Diffs:
Index: scribus/scribuscore.cpp
===================================================================
--- scribus/scribuscore.cpp (revision 14024)
+++ scribus/scribuscore.cpp (revision 14025)
@@ -430,6 +430,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