mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 09:57:44 +01:00
when pasting a Range of automation, first add guard points,
so the automation data before and after this range is retained
This commit is contained in:
parent
3a174ff914
commit
cd332a2af0
1 changed files with 5 additions and 0 deletions
|
|
@ -1978,6 +1978,11 @@ ControlList::paste (const ControlList& alist, timepos_t const & time)
|
|||
return false;
|
||||
}
|
||||
|
||||
/* when pasting a range of automation, first add guard points so the automation data before and after this range is retained */
|
||||
const ControlEvent* last = alist.back();
|
||||
add_guard_point (time, -GUARD_POINT_DELTA);
|
||||
add_guard_point (time + last->when, GUARD_POINT_DELTA);
|
||||
|
||||
{
|
||||
Glib::Threads::RWLock::WriterLock lm (_lock);
|
||||
iterator where;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue