From bc2271b43ee8f301f89ef612e42d81c7b0c992f2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 9 Feb 2015 10:50:54 -0500 Subject: [PATCH] After dragging from multiple tracks to the dropzone, create the right number of new tracks. This does not address the visual flattening that occurs before the drop is complete. Doing that is complex and there is no immediate solution visible. The result after the drop is complete is correct, however. --- gtk2_ardour/editor_drag.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 6239aea24d..519c7d9f32 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -1056,6 +1056,9 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const /*changed typedef map, RouteTimeAxisView*> PlaylistMapping; PlaylistMapping playlist_mapping; + typedef map, RouteTimeAxisView*> PlaylistMapping; + PlaylistMapping playlist_mapping; + /* insert the regions into their new playlists */ for (list::const_iterator i = _views.begin(); i != _views.end();) { @@ -1145,6 +1148,9 @@ RegionMoveDrag::finished_no_copy ( typedef map, RouteTimeAxisView*> PlaylistMapping; PlaylistMapping playlist_mapping; + typedef map, RouteTimeAxisView*> PlaylistMapping; + PlaylistMapping playlist_mapping; + for (list::const_iterator i = _views.begin(); i != _views.end(); ) { RegionView* rv = i->view;