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:
parent
da6609a077
commit
d2c530bc9e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user