fix duplicate behavior

We were adding the "span" value to the position before calling
Playlist::duplicate(), but it does that internally.
This commit is contained in:
Paul Davis 2022-02-03 20:49:29 -07:00
parent c7d4729238
commit 604652b7d6

View File

@ -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()) {