13
0

Clear selection in MidiRegionView::clear_events (can't select what isn't there....).

git-svn-id: svn://localhost/ardour2/branches/3.0@3141 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-03-12 01:01:27 +00:00
parent bdbe392325
commit 704e5b809b

View File

@ -381,6 +381,8 @@ MidiRegionView::create_note_at(double x, double y, double dur)
void void
MidiRegionView::clear_events() MidiRegionView::clear_events()
{ {
clear_selection();
MidiGhostRegion* gr; MidiGhostRegion* gr;
for (vector<GhostRegion*>::iterator g = ghosts.begin(); g != ghosts.end(); ++g) { for (vector<GhostRegion*>::iterator g = ghosts.begin(); g != ghosts.end(); ++g) {
if ((gr = dynamic_cast<MidiGhostRegion*>(*g)) != 0) { if ((gr = dynamic_cast<MidiGhostRegion*>(*g)) != 0) {