summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc4
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 ();