Fix compatibility of marker positional lock style with 2.X sessions.

git-svn-id: svn://localhost/ardour2/branches/3.0@7580 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-09 23:15:54 +00:00
parent 69c9e2296c
commit eaed7cfe25

View file

@ -83,7 +83,12 @@ Location::Location (const Location& other)
Location::Location (Session& s, const XMLNode& node)
: SessionHandleRef (s)
, _position_lock_style (AudioTime)
{
/* Note: _position_lock_style is initialised above in case set_state doesn't set it
(for 2.X session file compatibility).
*/
if (set_state (node, Stateful::loading_state_version)) {
throw failed_constructor ();
}