From 7d2efe25ac9ab876c91684591a7bbf02337f9476 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 6 Oct 2007 18:39:44 +0000 Subject: [PATCH] Make edit groups effective with lassoo selections. git-svn-id: svn://localhost/ardour2/trunk@2526 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_selection.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 9341bc30b0..304c2aae82 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -782,6 +782,26 @@ Editor::select_all_within (nframes_t start, nframes_t end, double top, double bo return false; } + /* `touched' may contain some regions; if so, we need to add equivalent + regions from any edit groups */ + + list to_add; + + for (list::iterator i = touched.begin(); i != touched.end(); ++i) { + RegionView* r = dynamic_cast (*i); + if (r) { + vector e; + get_equivalent_regions (r, e); + for (vector::iterator j = e.begin(); j != e.end(); ++j) { + to_add.push_back (*j); + } + } + } + + for (list::iterator i = to_add.begin(); i != to_add.end(); ++i) { + touched.push_back (*i); + } + if (!touched_tracks.empty()) { switch (op) {