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

ColourGradient: Fix assertion in ColourGradient::remove

This commit is contained in:
reuk 2024-04-29 16:29:04 +01:00
parent c728d8509d
commit c4652ef7bc
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -169,7 +169,7 @@ int ColourGradient::addColour (const double proportionAlongGradient, Colour colo
void ColourGradient::removeColour (int index)
{
jassert (index > 0 && index < colours.size() - 1);
jassert (isPositiveAndBelow (index, colours.size()));
colours.remove (index);
}