diff options
author | David Robillard <d@drobilla.net> | 2008-12-23 21:05:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-23 21:05:50 +0000 |
commit | 2a2067388314ae1695f3be4d6ea9e3c3628f91ba (patch) | |
tree | 93b83d5f618e6161c7b8ede87f26565720789e44 /gtk2_ardour/canvas-note.cc | |
parent | 270f1abe8d2a3e3da369a8e64bc0e6806309304d (diff) |
Fix note velocity editing.
Don't abuse/leak selection when editing velocity (fix editing velocity of a single note actually editing velocity of every note who's velocity had previously been edited).
Properly preserve selection for MIDI operations in general.
Less crap method of delineating scroll events to canvas items (no exhaustive type cases needed in editor_canvas_events.cc).
Fix silly comment style in midi_region_view.h (hans: please note this and follow in the future).
git-svn-id: svn://localhost/ardour2/branches/3.0@4343 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note.cc')
-rw-r--r-- | gtk2_ardour/canvas-note.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/canvas-note.cc b/gtk2_ardour/canvas-note.cc index 89916dbf4a..f505504198 100644 --- a/gtk2_ardour/canvas-note.cc +++ b/gtk2_ardour/canvas-note.cc @@ -17,7 +17,7 @@ CanvasNote::on_event(GdkEvent* ev) static NoteEnd note_end; Editing::MidiEditMode edit_mode = _region.get_trackview().editor.current_midi_edit_mode(); - switch(ev->type) { + switch (ev->type) { case GDK_BUTTON_PRESS: if (ev->button.button == 2 || (ev->button.button == 1 && @@ -26,7 +26,7 @@ CanvasNote::on_event(GdkEvent* ev) event_x = ev->button.x; middle_point = region_start + x1() + (x2() - x1()) / 2.0L; - if(event_x <= middle_point) { + if (event_x <= middle_point) { cursor = Gdk::Cursor(Gdk::LEFT_SIDE); note_end = NOTE_ON; } else { |