13
0

fix behaviour of region-copy-drag when using the dropzone.

The copied regions all had a null playlist pointer, so they all ended up on
the same (new) track
This commit is contained in:
Paul Davis 2015-02-12 14:28:26 -05:00
parent 78d76c197e
commit eb45b3baaa

View File

@ -878,6 +878,11 @@ RegionMoveDrag::motion (GdkEvent* event, bool first_move)
const boost::shared_ptr<const Region> original = rv->region();
boost::shared_ptr<Region> region_copy = RegionFactory::create (original, true);
region_copy->set_position (original->position());
/* need to set this so that the drop zone code can work. This doesn't
actually put the region into the playlist, but just sets a weak pointer
to it.
*/
region_copy->set_playlist (original->playlist());
RegionView* nrv;
if (arv) {