Small bugfix in rtgui/retinex.cc, no issue

This commit is contained in:
Hombre
2017-01-22 18:06:32 +01:00
parent 250cdd40d7
commit 3f62b14703

View File

@@ -998,10 +998,12 @@ void Retinex::write (ProcParams* pp, ParamsEdited* pedited)
void Retinex::retinexMethodChanged() void Retinex::retinexMethodChanged()
{ {
if(retinexMethod->get_active_row_number() == 3) { if (!batchMode) {
highl->show(); if(retinexMethod->get_active_row_number() == 3) {
} else { highl->show();
highl->hide(); } else {
highl->hide();
}
} }
if (listener) { if (listener) {
@@ -1014,28 +1016,29 @@ void Retinex::retinexMethodChanged()
void Retinex::mapMethodChanged() void Retinex::mapMethodChanged()
{ {
if(mapMethod->get_active_row_number() == 1 /*|| mapMethod->get_active_row_number() == 2*/) { if (!batchMode) {
curveEditormap->show(); if(mapMethod->get_active_row_number() == 1 /*|| mapMethod->get_active_row_number() == 2*/) {
highlights->show(); curveEditormap->show();
h_tonalwidth->show(); highlights->show();
shadows->show(); h_tonalwidth->show();
s_tonalwidth->show(); shadows->show();
radius->show(); s_tonalwidth->show();
} else if(mapMethod->get_active_row_number() == 2 || mapMethod->get_active_row_number() == 3) { radius->show();
curveEditormap->show(); } else if(mapMethod->get_active_row_number() == 2 || mapMethod->get_active_row_number() == 3) {
highlights->show(); curveEditormap->show();
h_tonalwidth->show(); highlights->show();
shadows->show(); h_tonalwidth->show();
s_tonalwidth->show(); shadows->show();
radius->hide(); s_tonalwidth->show();
} else { radius->hide();
curveEditormap->hide(); } else {
highlights->hide(); curveEditormap->hide();
h_tonalwidth->hide(); highlights->hide();
shadows->hide(); h_tonalwidth->hide();
s_tonalwidth->hide(); shadows->hide();
radius->hide(); s_tonalwidth->hide();
radius->hide();
}
} }
if (listener) { if (listener) {