13
0

Create snapped drag-created MIDI notes 1 frame shorter than the ending grid line to prevent confusion such as in #3557.

git-svn-id: svn://localhost/ardour2/branches/3.0@8077 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-11-23 21:56:57 +00:00
parent da6609a077
commit d2c530bc9e

View File

@ -442,7 +442,7 @@ MidiRegionView::button_release (GdkEventButton* ev)
const double length = trackview.editor().pixel_to_frame
(_drag_rect->property_x2() - _drag_rect->property_x1());
create_note_at (x, _drag_rect->property_y1(), frames_to_beats(length), false);
create_note_at (x, _drag_rect->property_y1(), frames_to_beats(length), true);
}
delete _drag_rect;