13
0

spraying percussive hits has one undo step per drag.

- should fix 7134
This commit is contained in:
nick_m 2017-03-05 01:50:04 +11:00
parent 2012cf0d1a
commit fb4b72231a

View File

@ -6696,6 +6696,7 @@ HitCreateDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
Evoral::Beats length = _region_view->get_grid_beats (pf);
_editor->begin_reversible_command (_("Create Hit"));
_region_view->create_note_at (start, y, length, event->button.state, false);
_last_pos = start;
@ -6738,6 +6739,7 @@ HitCreateDrag::motion (GdkEvent* event, bool)
void
HitCreateDrag::finished (GdkEvent* /* ev */, bool /* had_movement */)
{
_editor->commit_reversible_command ();
}