Steps to reproduce:
- Use latest develop code
- Make a rect way off screen
- Draw it
- Crash
Code:
void MainComponent::paint (juce::Graphics& g)
{
// (Our component is opaque, so we must completely fill the background with a solid colour)
g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
g.setColour (juce::Colours::white);
juce::Rectangle<int> r (0, -2147483648, 24, 2);
g.fillRect (r);
}
https://github.com/FigBug/juce_bugs/tree/master/RectCrash
Expected behaviour:
- Don’t draw anything
- Don’t crash