diff options
Diffstat (limited to 'gtk2_ardour/editor_keys.cc')
-rw-r--r-- | gtk2_ardour/editor_keys.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_keys.cc b/gtk2_ardour/editor_keys.cc index 2548a68ab4..a2ee357436 100644 --- a/gtk2_ardour/editor_keys.cc +++ b/gtk2_ardour/editor_keys.cc @@ -45,7 +45,7 @@ Editor::keyboard_selection_finish (bool /*add*/) framepos_t start = selection->time.start(); framepos_t end; - + if ((_edit_point == EditAtPlayhead) && _session->transport_rolling()) { end = _session->audible_frame(); } else { @@ -54,7 +54,7 @@ Editor::keyboard_selection_finish (bool /*add*/) //snap the selection start/end snap_to(start); - + //if no tracks are selected and we're working from the keyboard, enable all tracks (_something_ has to be selected for any range selection) if ( (_edit_point == EditAtPlayhead) && selection->tracks.empty() ) select_all_tracks(); @@ -81,19 +81,19 @@ Editor::keyboard_selection_begin () } else { start = get_preferred_edit_position(); } - + //snap the selection start/end snap_to(start); - + //if there's not already a sensible selection endpoint, go "forever" if ( start > end ) { end = max_framepos; } - + //if no tracks are selected and we're working from the keyboard, enable all tracks (_something_ has to be selected for any range selection) if ( selection->tracks.empty() ) select_all_tracks(); - + selection->set (start, end); //if session is playing a range, cancel that |