Inherit Region Properties

This also adds special cases when splitting or splicing locked regions.
This commit is contained in:
Robin Gareus
2022-10-06 20:39:33 +02:00
parent 2f810ad34e
commit e40f58c106
4 changed files with 18 additions and 44 deletions

View File

@@ -1226,7 +1226,7 @@ LuaAPI::Rubberband::finalize ()
/* create a new region */
std::string region_name = RegionFactory::new_region_name (_region->name ());
PropertyList plist (_region->properties ());
PropertyList plist (_region->derive_properties ());
plist.add (Properties::start, std::numeric_limits<timepos_t>::min());
plist.add (Properties::name, region_name);
plist.add (Properties::whole_file, true);