From a74b374024da3d21df616f08ace84daba50495a3 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Sun, 11 Mar 2007 18:01:03 +0000 Subject: Make bounce range bounce the range on each selected track, instead of always bouncing the range on the track the selection was originally made. git-svn-id: svn://localhost/ardour2/trunk@1574 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_ops.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 0db98831cc..e410dc3f60 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -2569,7 +2569,7 @@ Editor::bounce_range_selection () return; } - TrackViewList *views = get_valid_views (selection->time.track, selection->time.group); + TrackSelection views = selection->tracks; nframes_t start = selection->time[clicked_selection].start; nframes_t end = selection->time[clicked_selection].end; @@ -2577,7 +2577,7 @@ Editor::bounce_range_selection () begin_reversible_command (_("bounce range")); - for (TrackViewList::iterator i = views->begin(); i != views->end(); ++i) { + for (TrackViewList::iterator i = views.begin(); i != views.end(); ++i) { AudioTimeAxisView* atv; @@ -2604,8 +2604,6 @@ Editor::bounce_range_selection () } commit_reversible_command (); - - delete views; } void -- cgit v1.2.3