mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
undoing a create note drag restores screen position.
This commit is contained in:
parent
1f9c26136c
commit
345f38f1de
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
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));
|
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->clear_editor_note_selection();
|
||||||
_region_view->create_note_at (start, _drag_rect->y0(), qn_length_beats, ev->button.state, false);
|
_region_view->create_note_at (start, _drag_rect->y0(), qn_length_beats, ev->button.state, false);
|
||||||
|
_editor->commit_reversible_command ();
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue