summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-06-07 06:10:55 +1000
committernick_m <mainsbridge@gmail.com>2016-06-07 06:10:55 +1000
commit9488201a2c08eaa66ef97c2f55d91166beac1dfb (patch)
treeb9bdfb3b8eb66030309cb9bf1b4e721718125168 /libs/ardour/region.cc
parent9a50d15c7f87ec51316dfd83fe2622feeb7d2e26 (diff)
Region ctor inherits position, start and beat.
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc5
1 files changed, 3 insertions, 2 deletions
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<const Region> 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<const Region> 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