From c44e520d8ca1c4efe6af36d08cd3f86f12f712c2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 5 Dec 2011 18:49:04 +0000 Subject: [PATCH] when doing a pure copy of a region, which resets the position, reset the position to the original after returning from the copy constructor. this keeps the semantics similar to the copy done usign a property list, where position etc. is expected to be set after construction. fixes #4519 git-svn-id: svn://localhost/ardour2/branches/3.0@10906 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/region_factory.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index 4243d44cb7..5e408b2786 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -73,7 +73,8 @@ RegionFactory::create (boost::shared_ptr 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); } -- 2.30.2