fix "Loop Range" in marker context menu

This commit is contained in:
Paul Davis 2020-07-05 15:26:17 -06:00
parent eaf88040cc
commit 1ceb153037
1 changed files with 5 additions and 1 deletions

View File

@ -1352,11 +1352,15 @@ Editor::marker_menu_loop_range ()
Location* l;
bool is_start;
cerr << "look for location from marker " << marker << endl;
if ((l = find_location_from_marker (marker, is_start)) != 0) {
if (l != transport_loop_location()) {
cerr << "Set loop\n";
set_loop_range (l->start(), l->end(), _("loop range from marker"));
} else {
cerr << " at TL\n";
}
_session->request_locate (l->start(), MustRoll);
_session->request_play_loop (true);
}
}