After dragging from multiple tracks to the dropzone, create the right number of new...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 9 Feb 2015 15:50:54 +0000 (10:50 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 13 Feb 2015 21:17:27 +0000 (16:17 -0500)
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

index 6239aea24d6e7ec98861326d14972c03ff93298b..519c7d9f329e9b32e39d32e1ed3c6e022bd00384 100644 (file)
@@ -1056,6 +1056,9 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const /*changed
        typedef map<boost::shared_ptr<Playlist>, RouteTimeAxisView*> PlaylistMapping;
        PlaylistMapping playlist_mapping;
 
+       typedef map<boost::shared_ptr<Playlist>, RouteTimeAxisView*> PlaylistMapping;
+       PlaylistMapping playlist_mapping;
+
        /* insert the regions into their new playlists */
        for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end();) {
 
@@ -1145,6 +1148,9 @@ RegionMoveDrag::finished_no_copy (
        typedef map<boost::shared_ptr<Playlist>, RouteTimeAxisView*> PlaylistMapping;
        PlaylistMapping playlist_mapping;
 
+       typedef map<boost::shared_ptr<Playlist>, RouteTimeAxisView*> PlaylistMapping;
+       PlaylistMapping playlist_mapping;
+
        for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ) {
 
                RegionView* rv = i->view;