From dc989ee20470ef3e454772288479d52e50642275 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 12 Feb 2015 14:28:26 -0500 Subject: [PATCH] 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 --- gtk2_ardour/editor_drag.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 1a99817805..849f485ac3 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -884,7 +884,12 @@ RegionMoveDrag::motion (GdkEvent* event, bool first_move) const boost::shared_ptr original = rv->region(); boost::shared_ptr 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) { boost::shared_ptr audioregion_copy