fix startup crash if no loop range is defined

This commit is contained in:
Paul Davis 2019-11-23 13:37:00 -07:00
parent d04c9b3244
commit 8972f69e68
1 changed files with 4 additions and 0 deletions

View File

@ -1411,6 +1411,10 @@ Session::auto_punch_changed (Location* location)
void
Session::auto_loop_changed (Location* location)
{
if (!location) {
return;
}
replace_event (SessionEvent::AutoLoop, location->end(), location->start());
const bool rolling = transport_rolling ();