diff options
author | nick_m <mainsbridge@gmail.com> | 2016-06-07 06:14:47 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-06-07 06:14:47 +1000 |
commit | 36f3291a9c9da4ac798929702556ca6f735d27a2 (patch) | |
tree | 7a0021b935bbdcba9fb113e0e3659a09c64fb616 /libs/ardour/region_factory.cc | |
parent | 86db26ff1635fad436945a2b7b6ce69a823bc7ca (diff) |
Ensure correct lock style before setting position.
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r-- | libs/ardour/region_factory.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index 33c714cd1d..b9a1e8d624 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -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); |