diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-09 14:29:57 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-09 14:30:38 -0400 |
commit | cfca056f196681d1f59f22316c443ccd02acba19 (patch) | |
tree | 0790f4076d564f590023d21efd4160911fa63c54 /libs/evoral/src/ControlList.cpp | |
parent | 9e8b50f07539e77f10829f5e8b352b40a1eac309 (diff) |
make sure that copy constructors and operator= for ControlList pass along the _interpolation value
Diffstat (limited to 'libs/evoral/src/ControlList.cpp')
-rw-r--r-- | libs/evoral/src/ControlList.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp index e507318214..95e61c1742 100644 --- a/libs/evoral/src/ControlList.cpp +++ b/libs/evoral/src/ControlList.cpp @@ -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); |