From 9d197c0702729249f8ec6b80dcdc6ab6d1ecfbb8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 28 Jul 2022 17:59:06 -0600 Subject: [PATCH] fix copy-n-paste of audio region envelopes and other automation data Constructing a playlist from another playlist plus an offset used the wrong RegionFactory::create method. By failing to pass in the offset to the region constructor, the newly created region gets its envelope (and possibly other automation data) from the start of the existing region, not its own start. --- libs/ardour/playlist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index cfcd4b697c..f5052cffd0 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -270,7 +270,7 @@ Playlist::Playlist (boost::shared_ptr other, timepos_t const & s plist.add (Properties::layer, region->layer ()); plist.add (Properties::layering_index, region->layering_index ()); - new_region = RegionFactory::create (region, plist, true, &thawlist); + new_region = RegionFactory::create (region, offset, plist, true, &thawlist); add_region_internal (new_region, position, thawlist); }