mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 18:07:42 +01:00
Fix crash on saving session template (#3634).
git-svn-id: svn://localhost/ardour2/branches/3.0@8375 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fcd0a44744
commit
c76912db2c
1 changed files with 9 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue