Editor::axis_view_by_control() needs to explore child tracks, now that Selection is relying on it

This commit is contained in:
Paul Davis 2017-05-05 18:06:51 +01:00
parent 589f6f67a3
commit a84b1a375a

View file

@ -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;