From ec222cc4299dcc75a12925e76fa897a543539301 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 10 Jun 2009 00:30:12 +0000 Subject: [PATCH] fix up initialization and deserialization of _ancestral_start git-svn-id: svn://localhost/ardour2/branches/3.0@5147 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/region.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 00c4e665bb..19f26966a7 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -71,6 +71,8 @@ Region::Region (Session& s, nframes_t start, nframes_t length, const string& nam , _layer(layer) , _first_edit(EditChangesNothing) , _frozen(0) + , _ancestral_start (0) + , _ancestral_length (0) , _stretch(1.0) , _shift(1.0) , _read_data_count(0) @@ -127,6 +129,8 @@ Region::Region (const SourceList& srcs, nframes_t start, nframes_t length, const , _layer(layer) , _first_edit(EditChangesNothing) , _frozen(0) + , _ancestral_start (0) + , _ancestral_length (0) , _stretch(1.0) , _shift(1.0) , _read_data_count(0) @@ -1272,7 +1276,7 @@ Region::set_live_state (const XMLNode& node, Change& what_changed, bool send) /* these 3 properties never change as a result of any editing */ if ((prop = node.property ("ancestral-start")) != 0) { - _ancestral_start = atoi (prop->value()); + _ancestral_start = strtoll (prop->value().c_str(), 0, 10); } else { _ancestral_start = _start; }