summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-07-21 15:49:28 +0200
committerRobin Gareus <robin@gareus.org>2017-07-21 15:49:28 +0200
commit3d505636207b3a595ed8ae2f8c7309477d826638 (patch)
tree3afe4a53f963bf38f5a7a12f47c2e4ba01e491e4 /gtk2_ardour/automation_time_axis.cc
parent8400ebd175e0b2db632ea45b1943dc646dfe97c4 (diff)
Properly propagate TAV TimeSelection
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r--gtk2_ardour/automation_time_axis.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc
index 39a312da4b..724809d446 100644
--- a/gtk2_ardour/automation_time_axis.cc
+++ b/gtk2_ardour/automation_time_axis.cc
@@ -889,6 +889,19 @@ AutomationTimeAxisView::add_line (boost::shared_ptr<AutomationLine> line)
line->add_visibility (AutomationLine::Line);
}
+bool
+AutomationTimeAxisView::propagate_time_selection () const
+{
+ /* MIDI automation is part of the MIDI region. It is always
+ * implicily selected with the parent, regardless of TAV selection
+ */
+ if (_parameter.type() >= MidiCCAutomation &&
+ _parameter.type() <= MidiChannelPressureAutomation) {
+ return true;
+ }
+ return false;
+}
+
void
AutomationTimeAxisView::entered()
{