regions: force position time domain when a region is added to a playlist

Q: why not length time domain also?
This commit is contained in:
Paul Davis 2023-07-24 17:04:51 -06:00
parent 1fd5f0d9e9
commit aa0e882c5f
1 changed files with 1 additions and 0 deletions

View File

@ -779,6 +779,7 @@ Playlist::add_region_internal (std::shared_ptr<Region> region, timepos_t const &
}
region->set_position_unchecked (position);
region->set_position_time_domain (time_domain());
regions.insert (upper_bound (regions.begin (), regions.end (), region, cmp), region);
all_regions.insert (region);