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:
parent
9ac2e8b4f7
commit
525e9e9ded
1 changed files with 3 additions and 0 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue