1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Fixed the copy constructor and assignment operator of NormalisableRange

This commit is contained in:
tpoole 2017-04-06 22:02:04 +01:00
parent 122f0b0c47
commit 710d27d74f

View file

@ -55,7 +55,10 @@ public:
NormalisableRange (const NormalisableRange& other) noexcept
: start (other.start), end (other.end),
interval (other.interval), skew (other.skew),
symmetricSkew (other.symmetricSkew)
symmetricSkew (other.symmetricSkew),
convertFrom0To1Function (other.convertFrom0To1Function),
convertTo0To1Function (other.convertTo0To1Function),
snapToLegalValueFunction (other.snapToLegalValueFunction)
{
checkInvariants();
}
@ -68,7 +71,12 @@ public:
interval = other.interval;
skew = other.skew;
symmetricSkew = other.symmetricSkew;
convertFrom0To1Function = other.convertFrom0To1Function;
convertTo0To1Function = other.convertTo0To1Function;
snapToLegalValueFunction = other.snapToLegalValueFunction;
checkInvariants();
return *this;
}