Skip to content

Commit eca8321

Browse files
committed
Direct2D: Fix issue where vertical/horizontal lines were ignored by strokePath
1 parent e3df22a commit eca8321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/juce_graphics/native/juce_Direct2DGraphicsContext_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ void Direct2DGraphicsContext::strokePath (const Path& p, const PathStrokeType& s
14341434
{
14351435
JUCE_SCOPED_TRACE_EVENT_FRAME (etw::drawPath, etw::direct2dKeyword, getFrameId());
14361436

1437-
if (p.isEmpty())
1437+
if (p.getBounds().withZeroOrigin() == Rectangle<float>{})
14381438
return;
14391439

14401440
applyPendingClipList();

0 commit comments

Comments
 (0)