From 007808a6ad96f38e84ce1db12d448628d80baa0a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 27 Feb 2017 16:39:22 +0100 Subject: [PATCH] fix crash caused by thinko in 123fcf3cf --- gtk2_ardour/route_processor_selection.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/route_processor_selection.cc b/gtk2_ardour/route_processor_selection.cc index 9429005e6f..5b0b48c4ba 100644 --- a/gtk2_ardour/route_processor_selection.cc +++ b/gtk2_ardour/route_processor_selection.cc @@ -119,8 +119,9 @@ RouteProcessorSelection::remove (AxisView* r) AxisViewSelection::iterator i; if ((i = find (axes.begin(), axes.end(), r)) != axes.end()) { + AxisView* av = *i; axes.erase (i); - (*i)->set_selected (false); + av->set_selected (false); } }