diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-28 00:06:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-28 00:06:25 +0000 |
| commit | bf14618d056dc6f1ed7f32f943a565d8f662049e (patch) | |
| tree | 268f80ea96b79925e9fd84a55953bc22cd144bfb | |
| parent | fe6de8b48ff0a40e229c06932ac5fd497322f208 (diff) | |
Fix off-by-one channel when editing audio map levels numerically.v2.14.7
| -rw-r--r-- | src/wx/audio_mapping_view.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index 7a330291f..634d2fe73 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -507,11 +507,9 @@ AudioMappingView::minus6dB () void AudioMappingView::edit () { - int const d = _menu_output - 1; - - AudioGainDialog* dialog = new AudioGainDialog (this, _menu_input, _menu_output - 1, _map.get(_menu_input, d)); + AudioGainDialog* dialog = new AudioGainDialog (this, _menu_input, _menu_output, _map.get(_menu_input, _menu_output)); if (dialog->ShowModal() == wxID_OK) { - _map.set (_menu_input, d, dialog->value ()); + _map.set (_menu_input, _menu_output, dialog->value ()); map_values_changed (); } |
