From 963d2b6906054ae514886cb66dfd04ce24f097e1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 Jun 2021 08:22:01 -0600 Subject: [PATCH] use Playlist::rdiff_and_add_command() rather than explicit code --- gtk2_ardour/editor_drag.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 5691c16e67..2b7279bc73 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -2498,13 +2498,11 @@ RegionRippleDrag::finished (GdkEvent* event, bool movement_occurred) (*pi)->freeze(); } - remove_unselected_from_views (prev_amount, true); + remove_unselected_from_views (prev_amount); for (pi = playlists.begin(); pi != playlists.end(); ++pi) { (*pi)->thaw(); - vector cmds; - (*pi)->rdiff (cmds); - _editor->session()->add_commands (cmds); + (*pi)->rdiff_and_add_command (_editor->session()); } // other modified playlists are added to undo by RegionMoveDrag::finished()