From 8f7eaf60715eaede050662f0d1ad9fc690ff9c50 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 5 Sep 2011 12:04:33 -0400 Subject: [PATCH] Fix for CustomWB recall (issue 928) --- rtgui/whitebalance.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/rtgui/whitebalance.cc b/rtgui/whitebalance.cc index 1e68b946a..552eba65b 100644 --- a/rtgui/whitebalance.cc +++ b/rtgui/whitebalance.cc @@ -92,19 +92,15 @@ WhiteBalance::WhiteBalance () : Gtk::VBox(), FoldableToolPanel(this), wbp(NULL), void WhiteBalance::adjusterChanged (Adjuster* a, double newval) { + //cache custom WB setting to allow its recall + cache_customWB ((int)temp->getValue(), green->getValue()); + if (method->get_active_row_number()!=2) { disableListener (); method->set_active (2); enableListener (); } - else { //method->get_active_row_number()==2 - //cache custom WB setting to allow its recall - if (a==temp) - custom_temp=(int)a->getValue(); - else if (a==green) - custom_green=a->getValue(); - } - + if (listener) { if (a==temp) listener->panelChanged (EvWBTemp, Glib::ustring::format ((int)a->getValue()));