From 5d7ba3c7717288b13cb8b286474382580f3bdba9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 25 Jan 2020 23:26:31 +0100 Subject: [PATCH] Apply fader-based gain calculations to the current gain, not 0dB. --- src/wx/audio_panel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2