diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-29 22:36:03 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-29 22:36:03 +0000 |
commit | c76912db2cbbd4590495b70b7b33fe416a22b28b (patch) | |
tree | 13ae3bd0ec3adabb6e297b5cc5e6bae10ba62be3 /libs/ardour/session.cc | |
parent | fcd0a44744a78efa94ec02f79a24ffc83d46f5dd (diff) |
Fix crash on saving session template (#3634).
git-svn-id: svn://localhost/ardour2/branches/3.0@8375 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index c22cfd261a..3b69fd8279 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4065,8 +4065,12 @@ Session::start_time_changed (framepos_t old) /* Update the auto loop range to match the session range (unless the auto loop range has been changed by the user) */ - + Location* s = _locations->session_range_location (); + if (s == 0) { + return; + } + Location* l = _locations->auto_loop_location (); if (l->start() == old) { @@ -4082,6 +4086,10 @@ Session::end_time_changed (framepos_t old) */ Location* s = _locations->session_range_location (); + if (s == 0) { + return; + } + Location* l = _locations->auto_loop_location (); if (l->end() == old) { |