summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-01-24 13:45:08 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-01-24 13:45:08 +0000
commit14814f54692211d34acde52ae8adedeae04726cb (patch)
tree5b28cc2b2fa718ace0f159c988cb14248a0ad4a3 /gtk2_ardour/editor_selection.cc
parent00620a0d1a48dd41f77b3a04739e480c5451d0a2 (diff)
minor selection tweak to avoid finding regions in an existing track selection under the wrong circumstances
git-svn-id: svn://localhost/ardour2/trunk@1378 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index ebee195c86..56e88d9744 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -345,9 +345,14 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op,
button_release_can_deselect = false;
}
+
if (op == Selection::Toggle || op == Selection::Set) {
- get_equivalent_regions (clicked_regionview, all_equivalent_regions);
+ if (selection->selected (clicked_audio_trackview)) {
+ get_equivalent_regions (clicked_regionview, all_equivalent_regions);
+ } else {
+ all_equivalent_regions.push_back (clicked_regionview);
+ }
switch (op) {
case Selection::Toggle: