Fix undo when ripple deleting a region (#9767)
This commit is contained in:
parent
3bdf378df3
commit
9f0b829cfb
@ -4931,11 +4931,10 @@ Editor::remove_clicked_region ()
|
|||||||
playlist->remove_region (region);
|
playlist->remove_region (region);
|
||||||
|
|
||||||
if (should_ripple()) {
|
if (should_ripple()) {
|
||||||
do_ripple (playlist, region->position(), - region->length(), std::shared_ptr<Region>(), true);
|
do_ripple (playlist, region->position(), - region->length(), std::shared_ptr<Region>(), false);
|
||||||
} else {
|
|
||||||
playlist->rdiff_and_add_command (_session);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
playlist->rdiff_and_add_command (_session);
|
||||||
commit_reversible_command ();
|
commit_reversible_command ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user