Paste regions in the right place. Fixes #3517.
authorCarl Hetherington <carl@carlh.net>
Thu, 4 Nov 2010 21:13:22 +0000 (21:13 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 4 Nov 2010 21:13:22 +0000 (21:13 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7969 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/playlist.cc

index 638b6fa55d814bf5bd591174f23e7251219445b1..e462bceb102e8d47cfb8e26ac4158aa790ac9da6 100644 (file)
@@ -1255,7 +1255,7 @@ Playlist::paste (boost::shared_ptr<Playlist> other, framepos_t position, float t
                                */
 
                                copy_of_region->set_layer (copy_of_region->layer() + top_layer);
-                               add_region_internal (copy_of_region, copy_of_region->position() + pos);
+                               add_region_internal (copy_of_region, (*i)->position() + pos);
                        }
                        pos += shift;
                }