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

macOS: Prevent an empty RectangleList from incorrectly filling a graphics context

This commit is contained in:
Anthony Nicholls 2024-02-28 09:05:33 +00:00
parent 9ac2e8b4f7
commit 525e9e9ded

View file

@ -593,6 +593,9 @@ void CoreGraphicsContext::drawLine (const Line<float>& line)
void CoreGraphicsContext::fillRectList (const RectangleList<float>& list)
{
if (list.isEmpty())
return;
std::vector<CGRect> rects;
rects.reserve ((size_t) list.getNumRectangles());