From eb45b3baaa1d2565da3ce04b91f924df80512725 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 50f015eeeb..a5ead24562 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -878,7 +878,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