fix crash caused by thinko in 123fcf3cf
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 27 Feb 2017 15:39:22 +0000 (16:39 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 27 Feb 2017 15:39:22 +0000 (16:39 +0100)
gtk2_ardour/route_processor_selection.cc

index 9429005e6fd3406f73b9b8981a421d3620c73ee9..5b0b48c4ba04f1453d72bd3323eb5f072f868e40 100644 (file)
@@ -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);
        }
 }