summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-02-08 20:00:36 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-02-08 20:00:36 +0100
commitb911303fddfebe13557e45eff51530ca6411e22e (patch)
tree313787bc935e5fe41085ea3292479bc3fb5e83ff
parentf4cb567fdb7781417fb729cda65a6410bd062c86 (diff)
improved fix for #7208, hopefully
-rw-r--r--gtk2_ardour/editor_ops.cc5
1 files changed, 4 insertions, 1 deletions
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++;
}