Fix for correctly reflecting Input Profile option in the UI.

If auto-matched camera-specific ICC profile is not found Editor UI falls back to reflect "Camera standard" option.
This commit is contained in:
Michael Ezra 2012-01-29 10:58:49 -05:00
parent 9e89474a20
commit d3d15b4854
2 changed files with 7 additions and 1 deletions

View File

@ -885,7 +885,7 @@ TP_ICM_BLENDCMSMATRIX;Blend highlights with matrix
TP_ICM_BLENDCMSMATRIX_TOOLTIP;Enable to recover blown highlights when using LUT based ICC profiles
TP_ICM_FILEDLGFILTERANY;Any files
TP_ICM_FILEDLGFILTERICM;ICC Profile Files
TP_ICM_INPUTCAMERAICC;Camera standard or ICC
TP_ICM_INPUTCAMERAICC;Auto-matched camera-specific ICC
TP_ICM_INPUTCAMERAICC_TOOLTIP;Use RawTherapees default ICC color profile. More precise than simple matrix, but only available for some cameras.
TP_ICM_INPUTCAMERA;Camera standard
TP_ICM_INPUTCAMERA_TOOLTIP;Use simple default color matrix by DCRAW or embedded in DNG

View File

@ -207,6 +207,12 @@ void ICMPanel::read (const ProcParams* pp, const ParamsEdited* pedited) {
icameraICC->set_active (true);
ckbBlendCMSMatrix->set_sensitive (true);
}
else if ((pp->icm.input == "(cameraICC)") && icameraICC->get_state()==Gtk::STATE_INSENSITIVE) {
// this is the case when (cameraICC) is instructed by packaged profiles, but ICC file is not found
// therefore falling back UI to explicitly reflect the (camera) option
icamera->set_active (true);
ckbBlendCMSMatrix->set_sensitive (false);
}
else if ((pp->icm.input == "(camera)" || pp->icm.input=="") && icamera->get_state()!=Gtk::STATE_INSENSITIVE) {
icamera->set_active (true);
ckbBlendCMSMatrix->set_sensitive (false);