Set up session range location correctly from 2.X sessions. Fixes #3435.
authorCarl Hetherington <carl@carlh.net>
Tue, 7 Sep 2010 12:19:41 +0000 (12:19 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 7 Sep 2010 12:19:41 +0000 (12:19 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7750 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/location.cc

index ecb694ad9381cd7cb65ece42648f36b924d70ae7..ddf95b16498795198cd0cbb40565fdb9737739f0 100644 (file)
@@ -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;
                                                        }