13
0

more correct implementation for RouteProcessorSelection::set (AxisView*)

Suspending changes while clearing core selection stripables doesn't work
correctly, because we are not notified of the change before attempting
to add the argument.
This commit is contained in:
Paul Davis 2024-05-07 16:14:00 -06:00
parent fd1f68c34a
commit 90d21161e7

View File

@ -172,9 +172,10 @@ RouteProcessorSelection::set (AxisView* r)
if (!shp.session()) {
return;
}
PresentationInfo::ChangeSuspender cs;
shp.session()->selection().clear_stripables ();
add (r, true);
StripableList sl;
sl.push_back (r->stripable());
shp.session()->selection().set (sl);
}
bool