mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 00:47:43 +01:00
make sure that copy constructors and operator= for ControlList pass along the _interpolation value
This commit is contained in:
parent
9ac7b636a5
commit
fc69f36063
1 changed files with 5 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ ControlList::ControlList (const Parameter& id)
|
|||
|
||||
ControlList::ControlList (const ControlList& other)
|
||||
: _parameter(other._parameter)
|
||||
, _interpolation(Linear)
|
||||
, _interpolation(other._interpolation)
|
||||
, _curve(0)
|
||||
{
|
||||
_frozen = 0;
|
||||
|
|
@ -99,7 +99,7 @@ ControlList::ControlList (const ControlList& other)
|
|||
|
||||
ControlList::ControlList (const ControlList& other, double start, double end)
|
||||
: _parameter(other._parameter)
|
||||
, _interpolation(Linear)
|
||||
, _interpolation(other._interpolation)
|
||||
, _curve(0)
|
||||
{
|
||||
_frozen = 0;
|
||||
|
|
@ -156,6 +156,9 @@ ControlList::operator= (const ControlList& other)
|
|||
|
||||
_min_yval = other._min_yval;
|
||||
_max_yval = other._max_yval;
|
||||
|
||||
|
||||
_interpolation = other._interpolation;
|
||||
_default_value = other._default_value;
|
||||
|
||||
copy_events (other);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue