From 8f7db269cbddd717c18ea3a34c89e44bf038c63b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 26 Feb 2011 23:48:43 +0000 Subject: [PATCH] Create ghost regions when automation tracks are added, as well as on session reload (#3801). git-svn-id: svn://localhost/ardour2/branches/3.0@8973 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_time_axis.cc | 4 ++++ gtk2_ardour/route_time_axis.cc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index f85a006c4f..d08e40b8ef 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -864,6 +864,10 @@ MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool _route->describe_parameter(param) ) ); + + if (_view) { + _view->foreach_regionview (sigc::mem_fun (*track.get(), &TimeAxisView::add_ghost)); + } add_automation_child (param, track, show); } diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 1730725fe7..0429fd75f9 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -2443,6 +2443,10 @@ RouteTimeAxisView::create_gain_automation_child (const Evoral::Parameter& param, false, parent_canvas, _route->amp()->describe_parameter(param))); + + if (_view) { + _view->foreach_regionview (sigc::mem_fun (*gain_track.get(), &TimeAxisView::add_ghost)); + } add_automation_child (Evoral::Parameter(GainAutomation), gain_track, show); }