diff --git a/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp b/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp index 8b36041dec..3b28810130 100644 --- a/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp +++ b/modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp @@ -1434,7 +1434,7 @@ void Direct2DGraphicsContext::strokePath (const Path& p, const PathStrokeType& s { JUCE_SCOPED_TRACE_EVENT_FRAME (etw::drawPath, etw::direct2dKeyword, getFrameId()); - if (p.isEmpty()) + if (p.getBounds().withZeroOrigin() == Rectangle{}) return; applyPendingClipList();