summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-01-25 23:26:31 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-25 23:26:31 +0100
commit5d7ba3c7717288b13cb8b286474382580f3bdba9 (patch)
treedd783909590bd9cbc22d80005fb1db886ca7233d /src
parentd291ce8580aabc2e4340c9887ea1733325bb1b80 (diff)
Apply fader-based gain calculations to the current gain, not 0dB.
Diffstat (limited to 'src')
-rw-r--r--src/wx/audio_panel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc
index d066c11e2..5523d2539 100644
--- a/src/wx/audio_panel.cc
+++ b/src/wx/audio_panel.cc
@@ -258,7 +258,7 @@ AudioPanel::gain_calculate_button_clicked ()
return;
}
- _gain->wrapped()->SetValue (*c);
+ _gain->wrapped()->SetValue(_gain->wrapped()->GetValue() + *c);
/* This appears to be necessary, as the change is not signalled,
I think.