summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-09 14:49:03 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-09 14:49:03 +0000
commitaa9fd3334976ceae7e164c3fabc87e55fc921dff (patch)
tree418ebc5474ab447bcff70a80ada2142fc7268e94 /gtk2_ardour/editor_drag.cc
parente1cd6653daf70e310cc02ae59d3fc6739780a04d (diff)
Update note name correctly during drag. Fixes #3382.
git-svn-id: svn://localhost/ardour2/branches/3.0@7572 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r--gtk2_ardour/editor_drag.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index cab8a929ef..58bccf68d4 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -3872,7 +3872,7 @@ NoteDrag::motion (GdkEvent*, bool)
region->move_selection (dx, dy);
char buf[12];
- snprintf (buf, sizeof (buf), "%s (%d)", Evoral::midi_note_name (cnote->note()->note()).c_str(),
+ snprintf (buf, sizeof (buf), "%s (%d)", Evoral::midi_note_name (cnote->note()->note() + drag_delta_note).c_str(),
(int) floor ((cnote->note()->note() + drag_delta_note)));
_editor->show_verbose_canvas_cursor_with (buf);
}