From 9488201a2c08eaa66ef97c2f55d91166beac1dfb Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 7 Jun 2016 06:10:55 +1000 Subject: Region ctor inherits position, start and beat. --- libs/ardour/region.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs') diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 814f24c52a..15a3da8b8b 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -273,7 +273,7 @@ Region::Region (boost::shared_ptr other) /* override state that may have been incorrectly inherited from the other region */ - _position = 0; + _position = other->_position; _locked = false; _whole_file = false; _hidden = false; @@ -284,7 +284,8 @@ Region::Region (boost::shared_ptr other) _position_lock_style = other->_position_lock_style; _first_edit = other->_first_edit; - _start = 0; // It seems strange _start is not inherited here? + _start = other->_start; + _beat = other->_beat; /* sync pos is relative to start of file. our start-in-file is now zero, so set our sync position to whatever the the difference between -- cgit v1.2.3