From b640a37d79a065b08261bf85f6094eddd3b6f25a Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Sun, 5 Nov 2017 21:49:38 +0100 Subject: [PATCH] Fattal GUI: set a lower bound of 0 for amount --- rtgui/fattaltonemap.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtgui/fattaltonemap.cc b/rtgui/fattaltonemap.cc index aefe405d5..d14b76004 100644 --- a/rtgui/fattaltonemap.cc +++ b/rtgui/fattaltonemap.cc @@ -29,14 +29,14 @@ FattalToneMapping::FattalToneMapping(): FoldableToolPanel(this, "fattal", M("TP_ // setEnabledTooltipMarkup(M("TP_EPD_TOOLTIP")); + amount = Gtk::manage(new Adjuster (M("TP_TM_FATTAL_AMOUNT"), 0., 100., 1., 0.0)); threshold = Gtk::manage(new Adjuster (M("TP_TM_FATTAL_THRESHOLD"), -100., 100., 1., 0.0)); - amount = Gtk::manage(new Adjuster (M("TP_TM_FATTAL_AMOUNT"), -100., 100., 1., 0.0)); - threshold->setAdjusterListener(this); amount->setAdjusterListener(this); + threshold->setAdjusterListener(this); - threshold->show(); amount->show(); + threshold->show(); pack_start(*amount); pack_start(*threshold);