diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-07 12:19:41 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-07 12:19:41 +0000 |
commit | 7c678d0713ca0ce3ff6a4a0b8e675627c4fcf539 (patch) | |
tree | eccc25e3b97933ccf1f0a7fc4be93287a671216c /libs/ardour/location.cc | |
parent | db2f66247156cd29c1365b7be23e9a5e640847b4 (diff) |
Set up session range location correctly from 2.X sessions. Fixes #3435.
git-svn-id: svn://localhost/ardour2/branches/3.0@7750 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r-- | libs/ardour/location.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index ecb694ad93..ddf95b1649 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -742,7 +742,7 @@ Locations::get_state () LocationList::iterator iter; Glib::Mutex::Lock lm (lock); - for (iter = locations.begin(); iter != locations.end(); ++iter) { + for (iter = locations.begin(); iter != locations.end(); ++iter) { node->add_child_nocopy ((*iter)->get_state ()); } @@ -791,10 +791,10 @@ Locations::set_state (const XMLNode& node, int version) string::size_type const c = v.find_first_of (','); string const s = v.substr (0, c); if (s == X_("IsStart")) { - session_range_location->set_start (loc->start()); + session_range_location->set_start (loc->start(), true); add = false; } else if (s == X_("IsEnd")) { - session_range_location->set_end (loc->start()); + session_range_location->set_end (loc->start(), true); add = false; } |