summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-05-05 18:06:51 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-05-05 18:56:25 +0100
commita84b1a375a0a220193d5e23df8278f49b9f6a457 (patch)
tree534d42c2f1398a11b3a3e54296e072e8e61e7fd3 /gtk2_ardour
parent589f6f67a3aaebffb4bf1a4d3bb170e2e7986e84 (diff)
Editor::axis_view_by_control() needs to explore child tracks, now that Selection is relying on it
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 7fe49de57b..b16bce9847 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -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;