From b911303fddfebe13557e45eff51530ca6411e22e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 8 Feb 2017 20:00:36 +0100 Subject: improved fix for #7208, hopefully --- gtk2_ardour/editor_ops.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/editor_ops.cc') diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index bbc78adf4a..6f4c3610fb 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -7085,11 +7085,14 @@ Editor::close_region_gaps () (*r)->region()->clear_changes (); (*r)->region()->trim_front( (position - pull_back_frames)); + + last_region->clear_changes (); last_region->trim_end( (position - pull_back_frames + crossfade_len)); _session->add_command (new StatefulDiffCommand ((*r)->region())); - last_region = (*r)->region(); + _session->add_command (new StatefulDiffCommand (last_region)); + last_region = (*r)->region(); idx++; } -- cgit v1.2.3