diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-05 23:00:49 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-05 23:00:49 +0000 |
commit | f649d775bc4f1e8721214e81619099de46810783 (patch) | |
tree | 8d07557453dd81462f8963afe247234403fb557a /gtk2_ardour/midi_region_view.cc | |
parent | fb2ef7cb9a6d903181da3b1d4681dc3faa778d1a (diff) |
prevent trim cursors appearing, and prevent note trimming, when in a MIDI note that is too small on-screen. avoids silliness with trim cursors appearing while drawing small notes on screen, though really, it would nice to avoid them appearing ever in a note that was just added. not sure how to do that.
git-svn-id: svn://localhost/ardour2/branches/3.0@9077 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 1d4d420258..b97f250914 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -2849,7 +2849,7 @@ void MidiRegionView::note_mouse_position (float x_fraction, float /*y_fraction*/, bool can_set_cursor) { Editor* editor = dynamic_cast<Editor*>(&trackview.editor()); - + if (x_fraction > 0.0 && x_fraction < 0.25) { editor->set_canvas_cursor (editor->cursors()->left_side_trim); } else if (x_fraction >= 0.75 && x_fraction < 1.0) { |