diff --git a/rtdata/languages/default b/rtdata/languages/default index dd5a5fba5..a3c789d0b 100644 --- a/rtdata/languages/default +++ b/rtdata/languages/default @@ -2282,7 +2282,7 @@ TP_LOCALLAB_ADJ;Equalizer blue-red TP_LOCALLAB_ALL;All rubrics TP_LOCALLAB_AMOUNT;Amount TP_LOCALLAB_ARTIF;Shape detection -TP_LOCALLAB_ARTIF_TOOLTIP;Increase deltaE Weakening improve shape detection, but can reduce the scope of detection.\nThreshold deltaE-scope increase the range of scope-deltaE - high values are for very wide gamut images.\nThreshold structure take into account the structure level of solid areas +TP_LOCALLAB_ARTIF_TOOLTIP;Threshold structure take into account the structure level of solid areas.\nThreshold deltaE-scope increase the range of scope-deltaE - high values are for very wide gamut images.\nIncrease deltaE Weakening improve shape detection, but can reduce the scope of detection. TP_LOCALLAB_AUTOGRAY;Automatic TP_LOCALLAB_AVOID;Avoid color shift TP_LOCALLAB_BALAN;Balance ΔE ab-L diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index b165b5ff7..cd90eada6 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -12261,7 +12261,7 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o const int bfw = xend - xstart; if (complexsoft == 2) { - lp.shmeth = 1; + lp.shmeth = 0; } if (bfw >= mSP && bfh >= mSP) { diff --git a/rtgui/locallabtools.cc b/rtgui/locallabtools.cc index 4a95a3421..f360d944f 100644 --- a/rtgui/locallabtools.cc +++ b/rtgui/locallabtools.cc @@ -3491,9 +3491,9 @@ void LocallabShadow::read(const rtengine::procparams::ProcParams* pp, const Para complexity->set_active(spot.complexshadhigh); if (spot.shMethod == "std") { - shMethod->set_active(1); - } else if (spot.shMethod == "tone") { shMethod->set_active(0); + } else if (spot.shMethod == "tone") { + shMethod->set_active(1); } for (int i = 0; i < 5; i++) { @@ -3554,9 +3554,9 @@ void LocallabShadow::write(rtengine::procparams::ProcParams* pp, ParamsEdited* p spot.visishadhigh = exp->get_visible(); spot.complexshadhigh = complexity->get_active_row_number(); - if (shMethod->get_active_row_number() == 1) { + if (shMethod->get_active_row_number() == 0) { spot.shMethod = "std"; - } else if (shMethod->get_active_row_number() == 0) { + } else if (shMethod->get_active_row_number() == 1) { spot.shMethod = "tone"; } @@ -3847,9 +3847,9 @@ void LocallabShadow::convertParamToNormal() // Set hidden GUI widgets in Normal mode to default spot values if (defSpot.shMethod == "std") { - shMethod->set_active(1); - } else if (defSpot.shMethod == "tone") { shMethod->set_active(0); + } else if (defSpot.shMethod == "tone") { + shMethod->set_active(1); } blurSHde->setValue((double)defSpot.blurSHde);