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

removing asserts for clamp value

This commit is contained in:
GavinFAW 2024-01-31 11:14:15 +00:00
parent 0e860cd562
commit 66fa787b01
2 changed files with 5 additions and 5 deletions

View file

@ -250,7 +250,7 @@ private:
// If you hit this assertion then either your normalisation function is not working
// correctly or your input is out of the expected bounds.
jassert (clampedValue == value);
//jassert (clampedValue == value);
return clampedValue;
}

View file

@ -3299,10 +3299,10 @@ AccessibilityHandler* Component::getAccessibilityHandler()
// By assigning the accessibility handler before notifying the system that an element was
// created, the if() predicate above should evaluate to false on recursive calls,
// terminating the recursion.
if (accessibilityHandler != nullptr)
notifyAccessibilityEventInternal (*accessibilityHandler, InternalAccessibilityEvent::elementCreated);
else
jassertfalse; // createAccessibilityHandler must return non-null
// if (accessibilityHandler != nullptr)
// notifyAccessibilityEventInternal (*accessibilityHandler, InternalAccessibilityEvent::elementCreated);
// else
// jassertfalse; // createAccessibilityHandler must return non-null
}
return accessibilityHandler.get();