From fc69f360633e9f4f54af4b1408d76d7df80f5016 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Jul 2014 14:29:57 -0400 Subject: [PATCH] make sure that copy constructors and operator= for ControlList pass along the _interpolation value --- libs/evoral/src/ControlList.cpp | 7 +++++-- 1 file 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);