summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-24 14:41:33 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-24 14:41:33 -0400
commit31a760de84d49c086a4b279c2f7a538e133bb186 (patch)
tree26d5db5e5ad262fc738a96a30e6d5c67009f1537 /gtk2_ardour/editor_selection.cc
parente758b01b123fbee73d7270f573251001a4fff771 (diff)
fix last-minute code rearrangement in last commit that broke the intended functionality
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index 0f39bbe8ae..b071ed6e1b 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -1544,8 +1544,6 @@ Editor::set_selection_from_region ()
return;
}
- selection->set (selection->regions.start(), selection->regions.end_frame());
-
/* find all the tracks that have selected regions */
set<TimeAxisView*> tracks;
@@ -1557,7 +1555,11 @@ Editor::set_selection_from_region ()
TrackViewList tvl;
tvl.insert (tvl.end(), tracks.begin(), tracks.end());
- /* and select them */
+ /* select range (this will clear the region selection) */
+
+ selection->set (selection->regions.start(), selection->regions.end_frame());
+
+ /* and select the tracks */
selection->set (tvl);