fixed bug in discriminating between matrix and lut profiles for the OOG check
This commit is contained in:
@@ -298,6 +298,7 @@ void ImProcFunctions::updateColorProfiles (const Glib::ustring& monitorProfile,
|
||||
cmsHPROFILE iprof = cmsCreateLab4Profile (nullptr);
|
||||
cmsHPROFILE gamutprof = nullptr;
|
||||
cmsUInt32Number gamutbpc = 0;
|
||||
RenderingIntent gamutintent = RI_RELATIVE;
|
||||
|
||||
bool softProofCreated = false;
|
||||
|
||||
@@ -345,6 +346,7 @@ void ImProcFunctions::updateColorProfiles (const Glib::ustring& monitorProfile,
|
||||
if (params->icm.outputBPC) {
|
||||
gamutbpc = cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||
}
|
||||
gamutintent = outIntent;
|
||||
}
|
||||
}
|
||||
} else if (gamutCheck) {
|
||||
@@ -362,6 +364,7 @@ void ImProcFunctions::updateColorProfiles (const Glib::ustring& monitorProfile,
|
||||
if (settings->monitorBPC) {
|
||||
gamutbpc = cmsFLAGS_BLACKPOINTCOMPENSATION;
|
||||
}
|
||||
gamutintent = monitorIntent;
|
||||
}
|
||||
|
||||
if (!softProofCreated) {
|
||||
@@ -375,7 +378,7 @@ void ImProcFunctions::updateColorProfiles (const Glib::ustring& monitorProfile,
|
||||
}
|
||||
|
||||
if (gamutCheck) {
|
||||
gamutWarning.reset(new GamutWarning(iprof, gamutprof, gamutbpc));
|
||||
gamutWarning.reset(new GamutWarning(iprof, gamutprof, gamutintent, gamutbpc));
|
||||
}
|
||||
|
||||
cmsCloseProfile (iprof);
|
||||
|
||||
Reference in New Issue
Block a user