Bugfix: the image was still B&W even when BlackWhite::enabled is false (Issue 2010, comment #130)

This commit is contained in:
Hombre
2013-11-28 02:51:32 +01:00
parent e47468618e
commit db38394802

View File

@@ -2880,7 +2880,7 @@ void ImProcFunctions::chromiLuminanceCurve (int pW, LabImage* lold, LabImage* ln
// reference to the params structure has to be done outside of the parallelization to avoid CPU cache problem
bool highlight = params->hlrecovery.enabled; //Get the value if "highlight reconstruction" is activated
int chromaticity = params->labCurve.chromaticity;
bool bwToning = params->labCurve.chromaticity==-100 /*|| params->blackwhite.method=="Ch" */ || params->blackwhite.enabled || params->blackwhite.gammaRed!=0 || params->blackwhite.gammaGreen!=0 || params->blackwhite.gammaBlue!=0;
bool bwToning = params->labCurve.chromaticity==-100 /*|| params->blackwhite.method=="Ch" */ || params->blackwhite.enabled;
//if(bwToning) printf("OK bwto\n"); else printf("pas de bw\n");
bool LCredsk = params->labCurve.lcredsk;
bool ccut = ccutili;