mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Ensure correct lock style before setting position.
This commit is contained in:
parent
86db26ff16
commit
36f3291a9c
1 changed files with 2 additions and 1 deletions
|
|
@ -82,12 +82,13 @@ RegionFactory::create (boost::shared_ptr<const Region> region, bool announce)
|
|||
|
||||
if (ret) {
|
||||
ret->set_name (new_region_name(ret->name()));
|
||||
ret->set_position (region->position());
|
||||
|
||||
if (ret->session().config.get_glue_new_regions_to_bars_and_beats ()) {
|
||||
ret->set_position_lock_style (MusicTime);
|
||||
}
|
||||
|
||||
ret->set_position (region->position());
|
||||
|
||||
/* pure copy constructor - no property list */
|
||||
if (announce) {
|
||||
map_add (ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue