Fix Trim-drag abort
When no movement has occurred, TrimDrag::motion was never called and `begin_reversible_command()` was not called. There is nothing to undo. This fixes `commit_reversible_command(Command*): Assertion `_current_trans' failed`
This commit is contained in:
parent
ef08c819da
commit
4556f55d8e
@ -3014,7 +3014,7 @@ TrimDrag::aborted (bool movement_occurred)
|
||||
|
||||
GdkEvent ev;
|
||||
memset (&ev, 0, sizeof (GdkEvent));
|
||||
finished (&ev, true);
|
||||
finished (&ev, movement_occurred);
|
||||
|
||||
if (movement_occurred) {
|
||||
_editor->session()->undo (1);
|
||||
|
Loading…
Reference in New Issue
Block a user