Issue 2073: cache custom wb at open

This commit is contained in:
torger
2013-11-21 09:09:37 +01:00
parent a8d6f1a534
commit e4a4da309c

3
rtgui/whitebalance.cc Normal file → Executable file
View File

@@ -392,6 +392,9 @@ void WhiteBalance::read (const ProcParams* pp, const ParamsEdited* pedited) {
temp->setValue (pp->wb.temperature);
green->setValue (pp->wb.green);
equal->setValue (pp->wb.equal);
cache_customTemp (pp->wb.temperature);
cache_customGreen (pp->wb.green);
cache_customEqual (pp->wb.equal);
if (pedited) {
// The user may have changed the temperature and green value
temp->setEditedState (pedited->wb.temperature ? Edited : UnEdited);