fix potential crash bug in RouteProcessorSelection
This commit is contained in:
parent
8c1e06a5e9
commit
123fcf3cff
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user