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:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user