13
0

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
This commit is contained in:
Paul Davis 2007-01-24 13:45:08 +00:00
parent 00620a0d1a
commit 14814f5469

View File

@ -345,9 +345,14 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op,
button_release_can_deselect = false; button_release_can_deselect = false;
} }
if (op == Selection::Toggle || op == Selection::Set) { 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) { switch (op) {
case Selection::Toggle: case Selection::Toggle: