summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 8eb4f58532..fd8f7f5995 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -1424,6 +1424,11 @@ RouteTimeAxisView::paste (framepos_t pos, float times, Selection& selection, siz
}
pl->clear_changes ();
+ if (Config->get_edit_mode() == Ripple) {
+ std::pair<framepos_t, framepos_t> extent = (*p)->get_extent();
+ framecnt_t amount = extent.second - extent.first;
+ pl->ripple(pos, amount * times, boost::shared_ptr<Region>());
+ }
pl->paste (*p, pos, times);
_session->add_command (new StatefulDiffCommand (pl));