From f8650acb476227c3fffe739b97be28421810fcb6 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Fri, 17 Apr 2015 16:12:48 +0100 Subject: Don't modify a RouteUISelection that we've just erased --- gtk2_ardour/route_processor_selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/route_processor_selection.cc b/gtk2_ardour/route_processor_selection.cc index e66eaf959e..8975bf90bc 100644 --- a/gtk2_ardour/route_processor_selection.cc +++ b/gtk2_ardour/route_processor_selection.cc @@ -124,8 +124,8 @@ RouteProcessorSelection::remove (RouteUI* r) RouteUISelection::iterator i; if ((i = find (routes.begin(), routes.end(), r)) != routes.end()) { - routes.erase (i); (*i)->set_selected (false); + routes.erase (i); if (!_no_route_change_signal) { RoutesChanged (); } -- cgit v1.2.3