summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-note.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-05 00:08:30 +0000
committerDavid Robillard <d@drobilla.net>2009-05-05 00:08:30 +0000
commit7863c03cfc6c116dbef73ffc2f096ed50699cfb4 (patch)
treee555c234c84bb8c1ffb5be930167abc20b927529 /gtk2_ardour/canvas-note.cc
parent61169434eaf9e106f42c9254de53a57f98773754 (diff)
Make MIDI note editing work somewhat again...
Only show note velocity text when the user is actually editing velocity. git-svn-id: svn://localhost/ardour2/branches/3.0@5047 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note.cc')
-rw-r--r--gtk2_ardour/canvas-note.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/canvas-note.cc b/gtk2_ardour/canvas-note.cc
index 973ab4db6d..06234e3e55 100644
--- a/gtk2_ardour/canvas-note.cc
+++ b/gtk2_ardour/canvas-note.cc
@@ -20,8 +20,7 @@ CanvasNote::on_event(GdkEvent* ev)
switch (ev->type) {
case GDK_BUTTON_PRESS:
if (ev->button.button == 2 ||
- (ev->button.button == 1 &&
- edit_mode == Editing::MidiEditResize)) {
+ (ev->button.button == 1 && edit_mode == Editing::MidiEditResize)) {
double region_start = _region.get_position_pixels();
event_x = ev->button.x;
middle_point = region_start + x1() + (x2() - x1()) / 2.0L;