diff --git a/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp b/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp index 897151063d..d9cd9e043e 100644 --- a/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp +++ b/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp @@ -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{}) return; applyPendingClipList();