diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 60d6c9a3a4..5b8cb55be8 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4954,7 +4954,13 @@ Editor::remove_route (TimeAxisView *tv) ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::remove_route), tv)); TrackViewList::iterator i; + boost::shared_ptr route; + RouteTimeAxisView* rtav = dynamic_cast (tv); + if (rtav) { + route = rtav->route (); + } + TimeAxisView* next_tv = 0; if (tv == entered_track) {