From bcbdd858faff38b9b22573284f07bdb35b76140b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 10 May 2017 08:52:33 +0100 Subject: 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) --- libs/ardour/selection.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/ardour/selection.cc') 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 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) { -- cgit v1.2.3