fix behavior of region gain envelope when performing a separate action (2-point split)

This was a simple typo, using pos1 rather than pos2. Also removed now-irrelevant comment line
This commit is contained in:
Paul Davis 2022-09-26 16:40:04 -06:00
parent 6ff57ca37b
commit 3f812ca1a3
1 changed files with 2 additions and 3 deletions

View File

@ -1020,10 +1020,9 @@ Playlist::partition_internal (timepos_t const & start, timepos_t const & end, bo
plist.add (Properties::left_of_split, true);
plist.add (Properties::right_of_split, true);
/* see note in :_split_region()
* for MusicSample is needed to offset region-gain
/* see note in ::_split_region()
*/
region = RegionFactory::create (current, pos1.distance (pos1), plist, true, &thawlist);
region = RegionFactory::create (current, pos1.distance (pos2), plist, true, &thawlist);
add_region_internal (region, start, thawlist);
new_regions.push_back (region);
}