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

Direct2DGraphicsContext: Use path bounds to check for emptiness

Co-authored-by: Matt Gonzalez <matt@echoaudio.com>
This commit is contained in:
Oli 2025-04-15 15:25:48 +01:00
parent e177c5f8f4
commit 1dce4ae0fe

View file

@ -555,7 +555,7 @@ void Direct2DGraphicsContext::fillPath (const Path& p, const AffineTransform& tr
{
JUCE_SCOPED_TRACE_EVENT_FRAME (etw::fillPath, etw::direct2dKeyword, getFrameId());
if (p.isEmpty())
if (p.getBounds().withZeroOrigin() == Rectangle<float>{})
return;
applyPendingClipList();