projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe6de8b
)
Fix off-by-one channel when editing audio map levels numerically.
v2.14.7
author
Carl Hetherington
<cth@carlh.net>
Tue, 28 May 2019 00:06:25 +0000
(
00:06
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 28 May 2019 00:06:25 +0000
(
00:06
+0000)
src/wx/audio_mapping_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_mapping_view.cc
b/src/wx/audio_mapping_view.cc
index 7a330291f7bb7ca30255d73c94280966030319a7..634d2fe73b0d123341710727deddad73aed36ac0 100644
(file)
--- a/
src/wx/audio_mapping_view.cc
+++ b/
src/wx/audio_mapping_view.cc
@@
-507,11
+507,9
@@
AudioMappingView::minus6dB ()
void
AudioMappingView::edit ()
{
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) {
if (dialog->ShowModal() == wxID_OK) {
- _map.set (_menu_input,
d
, dialog->value ());
+ _map.set (_menu_input,
_menu_output
, dialog->value ());
map_values_changed ();
}
map_values_changed ();
}