Bug fixes so that region split does not clobber region gain envelopes.

git-svn-id: svn://localhost/ardour2/branches/3.0@4340 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2008-12-23 11:56:37 +00:00
parent 510d6d6dd3
commit 7ddbc547d5
2 changed files with 3 additions and 2 deletions

View File

@@ -155,7 +155,6 @@ AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, nframes_t
}
/* return to default fades if the existing ones are too long */
init ();
if (_flags & LeftOfSplit) {
if (_fade_in->back()->when >= _length) {
@@ -180,6 +179,8 @@ AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, nframes_t
_scale_amplitude = other->_scale_amplitude;
assert(_type == DataType::AUDIO);
listen_to_my_curves ();
listen_to_my_sources ();
}

View File

@@ -73,7 +73,7 @@ AutomationList::AutomationList (const AutomationList& other)
}
AutomationList::AutomationList (const AutomationList& other, double start, double end)
: ControlList(other)
: ControlList(other, start, end)
{
_style = other._style;
_state = other._state;