Small bugfix in rtgui/retinex.cc, no issue
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user