Ensure correct lock style before setting position.

This commit is contained in:
nick_m 2016-06-07 06:14:47 +10:00
parent 86db26ff16
commit 36f3291a9c

View File

@ -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);