diff --git a/rtengine/procparams.cc b/rtengine/procparams.cc index ebb8a9a99..7b3fc9f20 100644 --- a/rtengine/procparams.cc +++ b/rtengine/procparams.cc @@ -2448,7 +2448,7 @@ LocallabParams::LocallabSpot::LocallabSpot() : expsoft(false), streng(0), sensisf(15), - laplace(30), + laplace(20.), softMethod("soft"), // Blur & Noise expblur(false), diff --git a/rtengine/procparams.h b/rtengine/procparams.h index 5251a5887..78ef266f7 100644 --- a/rtengine/procparams.h +++ b/rtengine/procparams.h @@ -1049,7 +1049,7 @@ struct LocallabParams { bool expsoft; int streng; int sensisf; - int laplace; + double laplace; Glib::ustring softMethod; // Blur & Noise bool expblur; diff --git a/rtgui/locallab.cc b/rtgui/locallab.cc index 70a9e219d..8f383ed8e 100644 --- a/rtgui/locallab.cc +++ b/rtgui/locallab.cc @@ -133,7 +133,7 @@ Locallab::Locallab(): sensiv(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SENSI"), 0, 100, 1, 15))), //Soft Light streng(Gtk::manage(new Adjuster(M("TP_LOCALLAB_STRENG"), 1, 100, 1, 1))), - laplace(Gtk::manage(new Adjuster(M("TP_LOCALLAB_LAPLACE"), 20, 40, 1, 30))), + laplace(Gtk::manage(new Adjuster(M("TP_LOCALLAB_LAPLACE"), 0.5, 60., 0.1, 20.))), sensisf(Gtk::manage(new Adjuster(M("TP_LOCALLAB_SENSI"), 1, 100, 1, 15))), // Blur & Noise radius(Gtk::manage(new Adjuster(M("TP_LOCALLAB_RADIUS"), 1.0, 100.0, 0.1, 1.0))), @@ -2107,7 +2107,7 @@ void Locallab::write(ProcParams* pp, ParamsEdited* pedited) pp->locallab.spots.at(pp->locallab.selspot).expsoft = expsoft->getEnabled(); pp->locallab.spots.at(pp->locallab.selspot).streng = streng->getIntValue(); pp->locallab.spots.at(pp->locallab.selspot).sensisf = sensisf->getIntValue(); - pp->locallab.spots.at(pp->locallab.selspot).laplace = laplace->getIntValue(); + pp->locallab.spots.at(pp->locallab.selspot).laplace = laplace->getValue(); if (softMethod->get_active_row_number() == 0) { pp->locallab.spots.at(pp->locallab.selspot).softMethod = "soft"; } else if (softMethod->get_active_row_number() == 1) { @@ -3654,7 +3654,7 @@ void Locallab::setDefaults(const ProcParams * defParams, const ParamsEdited * pe // Soft Light streng->setDefault((double)defSpot->streng); sensisf->setDefault((double)defSpot->sensisf); - laplace->setDefault((double)defSpot->laplace); + laplace->setDefault(defSpot->laplace); // Blur & Noise radius->setDefault(defSpot->radius); strength->setDefault((double)defSpot->strength);