diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-09 10:50:54 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-13 16:17:27 -0500 |
commit | bc2271b43ee8f301f89ef612e42d81c7b0c992f2 (patch) | |
tree | 70618f620012887efb6e125fe6094b0355a7e570 /gtk2_ardour | |
parent | 193a276e220455e8e7f48309a8cedd8ff1b6842c (diff) |
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.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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<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; |