From d2ebc585756416dd11a07e49a842cf842b4d4b03 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 Jun 2021 11:10:38 -0600 Subject: [PATCH] at end of copy-region drag, potentially do ripple --- gtk2_ardour/editor_drag.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index e74a155a31..b912fa47eb 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -1828,6 +1828,13 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const changed_t /* in the past this was done in the main iterator loop; no need */ clear_draggingview_list(); + for (PlaylistSet::iterator p = modified_playlists.begin(); p != modified_playlists.end(); ++p) { + if (!_brushing && _editor->should_ripple()) { + (*p)->ripple (extent_min, extent_max - extent_min, &ripple_exclude); + } + (*p)->rdiff_and_add_command (_editor->session()); + } + /* If we've created new regions either by copying or moving to a new track, we want to replace the old selection with the new ones */ @@ -1836,9 +1843,6 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const changed_t _editor->selection->set (new_views); } - /* write commands for the accumulated diffs for all our modified playlists */ - add_stateful_diff_commands_for_playlists (modified_playlists); - _editor->commit_reversible_command (); }