From 604652b7d67796f0d6a990e711d80dd73e2b5092 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 3 Feb 2022 20:49:29 -0700 Subject: [PATCH] fix duplicate behavior We were adding the "span" value to the position before calling Playlist::duplicate(), but it does that internally. --- gtk2_ardour/editor_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 678d8033b6..df1b100763 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -5167,7 +5167,7 @@ Editor::duplicate_some_regions (RegionSelection& regions, float times) latest_regionviews.clear (); sigc::connection c = rtv->view()->RegionViewAdded.connect (sigc::mem_fun(*this, &Editor::collect_new_region_view)); - timepos_t position = end_sample + (start_sample.distance (r->end())); + timepos_t position = end_sample; playlist = (*i)->region()->playlist(); if (!should_ripple()) {