mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Disclaimer update + small bug of CMS color management fix
This commit is contained in:
@ -1059,12 +1059,13 @@ PDFColorProfileIdentifiers PDFCMSManager::getExternalColorProfiles(QString profi
|
||||
PDFColorProfileIdentifiers result;
|
||||
|
||||
QDir directory(profileDirectory);
|
||||
QDir applicationDirectory(QApplication::applicationDirPath());
|
||||
if (!profileDirectory.isEmpty() && directory.exists())
|
||||
{
|
||||
QStringList iccProfiles = directory.entryList({ "*.icc" }, QDir::Files | QDir::Readable | QDir::NoDotAndDotDot, QDir::NoSort);
|
||||
for (const QString& fileName : iccProfiles)
|
||||
{
|
||||
QString filePath = directory.absoluteFilePath(fileName);
|
||||
QString filePath = QDir::cleanPath(applicationDirectory.relativeFilePath(directory.absoluteFilePath(fileName)));
|
||||
|
||||
// Try to read the profile from the file. If it fails, then do nothing.
|
||||
QFile file(filePath);
|
||||
|
Reference in New Issue
Block a user