projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d47705
)
stop a crash during selection
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 8 Feb 2017 15:27:36 +0000
(16:27 +0100)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 8 Feb 2017 15:27:36 +0000
(16:27 +0100)
gtk2_ardour/selection.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/selection.cc
b/gtk2_ardour/selection.cc
index 27a062e87dd57facf79912d42e79cab3c5241232..ce39138586e76edef6298bd4de6cc67d3103fc5d 100644
(file)
--- a/
gtk2_ardour/selection.cc
+++ b/
gtk2_ardour/selection.cc
@@
-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);
}
}
}