when doing a pure copy of a region, which resets the position, reset the position...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 5 Dec 2011 18:49:04 +0000 (18:49 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 5 Dec 2011 18:49:04 +0000 (18:49 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10906 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/region_factory.cc

index 4243d44cb7660a44701c17bf87f0940de8a22b05..5e408b2786a4181ab7d87c21f27f2b80c5eaf1ff 100644 (file)
@@ -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);
                }