diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-08-12 14:39:50 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-08-12 14:40:21 -0400 |
commit | b98969be947e09e95028bbae32563604e19b81d7 (patch) | |
tree | d35e07a39edd6aee6edf2729be7b8a27d87cb83c | |
parent | 840253749326472cb7aecae70bcdd5a54c9ee842 (diff) |
do not set automation to off/manual for MIDI CC data when clearing such data
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 74f4470839..4e370b8b94 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -480,7 +480,9 @@ AutomationTimeAxisView::clear_clicked () } else if (_view) { _view->clear (); } - set_automation_state ((AutoState) ARDOUR::Off); + if (!EventTypeMap::instance().type_is_midi (_control->parameter().type())) { + set_automation_state ((AutoState) ARDOUR::Off); + } _editor.commit_reversible_command (); _session->set_dirty (); } |