From d2c530bc9e44f0699979df3cad4aa638752522c8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 23 Nov 2010 21:56:57 +0000 Subject: [PATCH] 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 --- gtk2_ardour/midi_region_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 7593274d6f..a11b038db4 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -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;