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.
This commit is contained in:
parent
96dc3cce88
commit
9d197c0702
@ -270,7 +270,7 @@ Playlist::Playlist (boost::shared_ptr<const Playlist> 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user