Fix fade outs on split regions.
authorCarl Hetherington <carl@carlh.net>
Mon, 9 Feb 2009 21:31:16 +0000 (21:31 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 9 Feb 2009 21:31:16 +0000 (21:31 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4508 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audioregion.cc

index 5b31aa44ff3d6c4e17eebe7c3a37f3e2990ce941..8ee53246747f0e7bc46bdd6729ff62359ef61c7f 100644 (file)
@@ -133,8 +133,8 @@ AudioRegion::AudioRegion (const SourceList& srcs, nframes_t start, nframes_t len
 AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, nframes_t offset, nframes_t length, const string& name, layer_t layer, Flag flags)
        : Region (other, offset, length, name, layer, flags)
        , _automatable(other->session())
-       , _fade_in (new AutomationList(*other->_fade_in, offset, offset + length))
-       , _fade_out (new AutomationList(*other->_fade_out, offset, offset + length))
+       , _fade_in (new AutomationList(*other->_fade_in))
+       , _fade_out (new AutomationList(*other->_fade_out))
        , _envelope (new AutomationList(*other->_envelope, offset, offset + length))
 {
        set<boost::shared_ptr<Source> > unique_srcs;