diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-23 13:37:00 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-23 13:37:00 -0700 |
commit | 8972f69e682e158795325bf80b58211a234084d3 (patch) | |
tree | 9628c951027d9cfccf90bf5c97c8ef09d6570dbb /libs/ardour/session.cc | |
parent | d04c9b32444b01e9c29d603c6301843003986c4a (diff) |
fix startup crash if no loop range is defined
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 980dec8dcf..d5579eb6fc 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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 (); |