mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Editor::axis_view_by_control() needs to explore child tracks, now that Selection is relying on it
This commit is contained in:
parent
589f6f67a3
commit
a84b1a375a
1 changed files with 8 additions and 0 deletions
|
|
@ -5254,6 +5254,14 @@ Editor::axis_view_by_control (boost::shared_ptr<AutomationControl> c) const
|
|||
if ((*j)->control() == c) {
|
||||
return *j;
|
||||
}
|
||||
|
||||
TimeAxisView::Children kids = (*j)->get_child_list ();
|
||||
|
||||
for (TimeAxisView::Children::iterator k = kids.begin(); k != kids.end(); ++k) {
|
||||
if ((*k)->control() == c) {
|
||||
return (*k).get();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue