mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
forward-port fatal-error-saving fix for xfade loading from 2.X
git-svn-id: svn://localhost/ardour2/branches/3.0@8194 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3639918e43
commit
5f00efd7e8
1 changed files with 10 additions and 0 deletions
|
|
@ -868,6 +868,11 @@ Crossfade::set_state (const XMLNode& node, int /*version*/)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_fade_in.size() < 2) {
|
||||||
|
/* fade state somehow saved with no points */
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
_fade_in.front()->value = 0.0;
|
_fade_in.front()->value = 0.0;
|
||||||
_fade_in.back()->value = 1.0;
|
_fade_in.back()->value = 1.0;
|
||||||
|
|
||||||
|
|
@ -896,6 +901,11 @@ Crossfade::set_state (const XMLNode& node, int /*version*/)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_fade_out.size() < 2) {
|
||||||
|
/* fade state somehow saved with no points */
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
_fade_out.front()->value = 1.0;
|
_fade_out.front()->value = 1.0;
|
||||||
_fade_out.back()->value = 0.0;
|
_fade_out.back()->value = 0.0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue