diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-27 02:04:16 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-27 02:04:16 +0000 |
commit | 8000b39c8cbfdafbf806e04f9db7f82c81f92cae (patch) | |
tree | 495fbe4e9a3f0a4e7024704758497d34bfafbfa7 /gtk2_ardour/audio_time_axis.cc | |
parent | aad157337c5db676fdb39f5faefbb764f500702a (diff) |
Create MIDI track gain automation tracks as non-region-based. Fix construction of MidiTimeAxisViews to use the same first_idle arrangement as AudioTimeAxisViews to prevent use of partially constructed objects.
git-svn-id: svn://localhost/ardour2/branches/3.0@7847 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_time_axis.cc')
-rw-r--r-- | gtk2_ardour/audio_time_axis.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/gtk2_ardour/audio_time_axis.cc b/gtk2_ardour/audio_time_axis.cc index a763da39c5..b456990a0d 100644 --- a/gtk2_ardour/audio_time_axis.cc +++ b/gtk2_ardour/audio_time_axis.cc @@ -189,21 +189,7 @@ AudioTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool { if (param.type() == GainAutomation) { - boost::shared_ptr<AutomationControl> c = _route->gain_control(); - if (!c) { - error << "Route has no gain automation, unable to add automation track view." << endmsg; - return; - } - - gain_track.reset (new AutomationTimeAxisView (_session, - _route, _route->amp(), c, - _editor, - *this, - false, - parent_canvas, - _route->amp()->describe_parameter(param))); - - add_automation_child(Evoral::Parameter(GainAutomation), gain_track, show); + create_gain_automation_child (param, show); } else if (param.type() == PanAutomation) { |