13
0

undoing a create note drag restores screen position.

This commit is contained in:
nick_m 2017-03-05 02:06:49 +11:00
parent 1f9c26136c
commit 345f38f1de

View File

@ -6644,8 +6644,10 @@ NoteCreateDrag::finished (GdkEvent* ev, bool had_movement)
const double qn_length = map.quarter_notes_between_frames (start_sess_rel, start_sess_rel + length);
Evoral::Beats qn_length_beats = max (Evoral::Beats::ticks(1), Evoral::Beats (qn_length));
_editor->begin_reversible_command (_("Create Note"));
_region_view->clear_editor_note_selection();
_region_view->create_note_at (start, _drag_rect->y0(), qn_length_beats, ev->button.state, false);
_editor->commit_reversible_command ();
}
double