summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-01-22 22:16:08 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-01-22 22:16:08 +0100
commit4333a80cb2c90850f77c3c5a2d1ff4cafa7fd5ba (patch)
tree96fe6678da41b7d2d50086e712d52d67cb9b1250 /gtk2_ardour/editor_ops.cc
parent5a5ed3738471eb327e4a01b0602943a2323868a3 (diff)
make undo/redo work for Regions > Edit > Close Gaps
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index f9f6875d20..ed83da2d80 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -7081,9 +7081,11 @@ Editor::close_region_gaps ()
continue;
}
+ (*r)->region()->clear_changes ();
(*r)->region()->trim_front( (position - pull_back_frames));
last_region->trim_end( (position - pull_back_frames + crossfade_len));
+ _session->add_command (new StatefulDiffCommand ((*r)->region()));
last_region = (*r)->region();
idx++;