From eaed7cfe25e3480defbae8ac926bda5d9dc789be Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 9 Aug 2010 23:15:54 +0000 Subject: [PATCH] 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 --- libs/ardour/location.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index d9d5911555..ecb694ad93 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -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 (); }