summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-11-23 21:56:57 +0000
committerCarl Hetherington <carl@carlh.net>2010-11-23 21:56:57 +0000
commitd2c530bc9e44f0699979df3cad4aa638752522c8 (patch)
treea6d16bf5698eaf38dd09bfef868d7081b8f0bc65 /gtk2_ardour
parentda6609a0776716afa047a198293ffbe15473ba86 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/midi_region_view.cc2
1 files changed, 1 insertions, 1 deletions
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;