1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

approximatelyEqual: Fix some compilation errors

This commit is contained in:
Tom Poole 2023-08-22 10:16:52 +01:00
parent f2e03eade0
commit 3aa5d96e67
2 changed files with 10 additions and 5 deletions

View file

@ -271,6 +271,9 @@ public:
*/
void setTargetValue (FloatType newValue) noexcept
{
if (approximatelyEqual (newValue, this->target))
return;
if (stepsToTarget <= 0)
{
this->setCurrentAndTargetValue (newValue);