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

Direct2D: Fix issue where vertical/horizontal lines were ignored by strokePath

This commit is contained in:
reuk 2025-03-31 14:41:15 +01:00
parent e3df22a4ea
commit eca83213eb
No known key found for this signature in database

View file

@ -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<float>{})
return;
applyPendingClipList();