From 9f0b829cfb474c4aff1e9fee979a5fa5f58e5734 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 13 Aug 2024 03:05:19 +0200 Subject: [PATCH] Fix undo when ripple deleting a region (#9767) --- gtk2_ardour/editor_ops.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 9619a914cb..6bde828220 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4931,11 +4931,10 @@ Editor::remove_clicked_region () playlist->remove_region (region); if (should_ripple()) { - do_ripple (playlist, region->position(), - region->length(), std::shared_ptr(), true); - } else { - playlist->rdiff_and_add_command (_session); + do_ripple (playlist, region->position(), - region->length(), std::shared_ptr(), false); } + playlist->rdiff_and_add_command (_session); commit_reversible_command (); }