summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-17 16:18:27 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-17 16:18:27 +0000
commit5576faf943f875cc13b807bdd0d3d99eb2714ff2 (patch)
tree93dd90feefee2831e7f3722f9357270e7d84f33c /gtk2_ardour/midi_time_axis.cc
parent81aef8b49138deea084942740de8dbfa2e30edc1 (diff)
Clean up some confusion with AutomationControls in AutomationTimeAxisViews that have regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@8883 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index 84288db326..77e862d8a9 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -842,15 +842,13 @@ MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool
/* These controllers are region "automation", so we do not create
* an AutomationList/Line for the track */
- boost::shared_ptr<AutomationControl> c = _route->get_control (param);
- assert (c);
-
boost::shared_ptr<AutomationTimeAxisView> track (
new AutomationTimeAxisView (
_session,
_route,
_route,
- c,
+ boost::shared_ptr<AutomationControl> (),
+ param,
_editor,
*this,
true,