13
0

keep velocity value visible in verbose cursor until we leave a note (fixes #5085)

git-svn-id: svn://localhost/ardour2/branches/3.0@13687 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-19 20:31:30 +00:00
parent 5a23ede9ec
commit 2b8fc2a43b

View File

@ -2935,8 +2935,8 @@ MidiRegionView::change_velocities (bool up, bool fine, bool allow_smush, bool al
if (!allow_smush) {
for (Selection::iterator i = _selection.begin(); i != _selection.end(); ++i) {
if ((*i)->note()->velocity() + delta == 0 || (*i)->note()->velocity() + delta == 127) {
return;
if ((*i)->note()->velocity() < -delta || (*i)->note()->velocity() + delta > 127) {
goto cursor_label;
}
}
}
@ -2964,6 +2964,7 @@ MidiRegionView::change_velocities (bool up, bool fine, bool allow_smush, bool al
apply_diff();
cursor_label:
if (!_selection.empty()) {
char buf[24];
snprintf (buf, sizeof (buf), "Vel %d",