drawRoundedRectangle causes SIGABRT if cornerSize < lineThickness

Was broken in this commit: macOS: Improve performance for some graphics draw functions · juce-framework/JUCE@997c927 · GitHub

Code to reproduce:

	juce::ColourGradient grad (juce::Colours::red, 0, 0, juce::Colours::green, 0, getHeight(), false);
	g.setGradientFill (grad);

	g.drawRoundedRectangle (getLocalBounds().reduced (50).toFloat(), 2.0f, 5.0f);

Thanks that should be a quick and easy fix, I’ll get something up ASAP although it’s a bank holiday weekend in the UK so you may not see it on develop for a few days now.

@RolandMR this is fixed on develop, thanks for reporting.

1 Like