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:
Robin Gareus 2022-07-17 16:02:53 +02:00
parent ef08c819da
commit 4556f55d8e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);