if user moves selection markers, convert selection to a timeline section

This commit is contained in:
Ben Loftis 2023-09-03 14:22:34 -05:00 committed by Robin Gareus
parent 4217a68852
commit e5e40c751f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 2 deletions

View File

@ -5858,8 +5858,10 @@ SelectionMarkerDrag::SelectionMarkerDrag (Editor* e, ArdourCanvas::Item* i)
bool ok = _editor->get_selection_extents (_start_at_start, _end_at_start);
assert (ok);
// SelectionStart, SelectionEnd
cout << " SelectionMarkerDrag " << _start_at_start << " - " << _end_at_start << " " << i->whoami() << "\n";
/* if the user adjusts the SelectionMarker, convert the selection to a timeline range (no track selection) */
_editor->get_selection ().clear_objects ();
_editor->get_selection ().clear_tracks ();
_editor->get_selection ().set (_start_at_start, _end_at_start);
}
void