13
0

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:
Paul Davis 2010-12-06 02:49:04 +00:00
parent 3639918e43
commit 5f00efd7e8

View File

@ -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.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.back()->value = 0.0;