13
0

stop a crash during selection

This commit is contained in:
Paul Davis 2017-02-08 16:27:36 +01:00
parent 2d47705998
commit 62995bd38d

View File

@ -642,12 +642,15 @@ Selection::remove (TimeAxisView* track)
void
Selection::remove (const TrackViewList& track_list)
{
PresentationInfo::ChangeSuspender cs;
for (TrackViewList::const_iterator i = track_list.begin(); i != track_list.end(); ++i) {
TrackViewList::iterator x = find (tracks.begin(), tracks.end(), *i);
if (x != tracks.end()) {
(*i)->set_selected (false);
tracks.erase (x);
(*i)->set_selected (false);
}
}
}