r14026 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:41 CEST 2009
Revision: 14026
Author: jghali
Date: 2009-09-22T07:16:59.526721Z
Commit message: discard icc profiles which do not contain a valid description string
Changeset:
M /trunk/Scribus/scribus/scribuscore.cpp
Diffs:
Index: scribus/scribuscore.cpp
===================================================================
--- scribus/scribuscore.cpp (revision 14025)
+++ scribus/scribuscore.cpp (revision 14026)
@@ -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