On resizing an unselected MIDI note, make it the only one to be resized during that drag. Fixes #3188.

git-svn-id: svn://localhost/ardour2/branches/3.0@7171 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-05-26 23:17:10 +00:00
parent 6fbaa5403b
commit 933388e7dc

View File

@ -1626,7 +1626,10 @@ NoteResizeDrag::start_grab (GdkEvent* event, Gdk::Cursor *)
relative = true;
}
region->note_selected (cnote, true);
/* select this note; if it is already selected, preserve the existing selection,
otherwise make this note the only one selected.
*/
region->note_selected (cnote, cnote->selected ());
for (MidiRegionSelection::iterator r = ms.begin(); r != ms.end(); ) {
MidiRegionSelection::iterator next;