summaryrefslogtreecommitdiff
path: root/libs/ardour/region_factory.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-12-05 18:49:04 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-12-05 18:49:04 +0000
commitc44e520d8ca1c4efe6af36d08cd3f86f12f712c2 (patch)
tree44808c63610a1cee211280c159a94f855e721fd3 /libs/ardour/region_factory.cc
parentacddc9bc7a3a3f5079404c9e30fcfec9284eb0b6 (diff)
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
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r--libs/ardour/region_factory.cc3
1 files changed, 2 insertions, 1 deletions
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<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);
}