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:
parent
c728d8509d
commit
c4652ef7bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue