summaryrefslogtreecommitdiff
path: root/libs/ardour/selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-05-10 08:52:33 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-05-10 08:52:55 +0100
commitbcbdd858faff38b9b22573284f07bdb35b76140b (patch)
treede0f3d0ab6b3ffdc4bc88d651de132ac608ed5ee /libs/ardour/selection.cc
parent86149840a1a3950a86dec2a8c0daa974e23e54c2 (diff)
Selection::get_stripables() needs to recurse into an Automatable's child Automatables when looking for for an Automation Control
It also needs renaming (to come)
Diffstat (limited to 'libs/ardour/selection.cc')
-rw-r--r--libs/ardour/selection.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/selection.cc b/libs/ardour/selection.cc
index 1c0e89fdf0..2286c83751 100644
--- a/libs/ardour/selection.cc
+++ b/libs/ardour/selection.cc
@@ -217,9 +217,11 @@ CoreSelection::get_stripables (StripableAutomationControls& sc) const
boost::shared_ptr<AutomationControl> c;
if (!s) {
+ /* some global automation control, not owned by a Stripable */
c = session.automation_control_by_id ((*x).controllable);
} else {
- c = s->automation_control ((*x).controllable);
+ /* automation control owned by a Stripable or one of its children */
+ c = s->automation_control_recurse ((*x).controllable);
}
if (s || c) {