summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_time_axis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/audio_time_axis.cc')
-rw-r--r--gtk2_ardour/audio_time_axis.cc16
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) {