summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-05-29 14:45:13 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-05-29 14:45:13 +0000
commit5fc24b7f018f1855b3e497bdcc611889f3cf2b3f (patch)
treeed54bb87b94162e61d5302092e85df0c6bffc965 /libs/ardour/region.cc
parente1475964e5ff8b173621ee4dfa8f0fbe50286239 (diff)
fix(es) from chris cannam for rb_effect mistakes
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3424 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index d999c59e97..e907770061 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -95,10 +95,10 @@ Region::Region (boost::shared_ptr<const Region> other, nframes_t offset, nframes
}
_length = length;
_last_length = length;
- _ancestral_start = other->_ancestral_start + offset;
- _ancestral_length = length;
- _stretch = 1.0;
- _shift = 1.0;
+ _ancestral_start = other->_ancestral_start;
+ _ancestral_length = other->_ancestral_length;
+ _stretch = other->_stretch;
+ _shift = other->_shift;
_name = name;
_last_position = 0;
_position = 0;
@@ -133,8 +133,8 @@ Region::Region (boost::shared_ptr<const Region> other)
_last_length = other->_length;
_ancestral_start = _start;
_ancestral_length = _length;
- _stretch = 1.0;
- _shift = 1.0;
+ _stretch = other->_stretch;
+ _shift = other->_shift;
_name = other->_name;
_last_position = other->_position;
_position = other->_position;