mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Direct2DGraphicsContext: Use path bounds to check for emptiness
Co-authored-by: Matt Gonzalez <matt@echoaudio.com>
This commit is contained in:
parent
e177c5f8f4
commit
1dce4ae0fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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<float>{})
|
||||
return;
|
||||
|
||||
applyPendingClipList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue