From eca83213eb07f81ae7feb6a9ce688dfca09f7c53 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 31 Mar 2025 14:41:15 +0100 Subject: [PATCH] Direct2D: Fix issue where vertical/horizontal lines were ignored by strokePath --- .../native/juce_Direct2DGraphicsContext_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();