13
0

fix potential crash bug in RouteProcessorSelection

This commit is contained in:
Paul Davis 2017-02-25 19:55:22 +01:00
parent 8c1e06a5e9
commit 123fcf3cff

View File

@ -119,8 +119,8 @@ RouteProcessorSelection::remove (AxisView* r)
AxisViewSelection::iterator i; AxisViewSelection::iterator i;
if ((i = find (axes.begin(), axes.end(), r)) != axes.end()) { if ((i = find (axes.begin(), axes.end(), r)) != axes.end()) {
(*i)->set_selected (false);
axes.erase (i); axes.erase (i);
(*i)->set_selected (false);
} }
} }