mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Guard against NaN errors in Component::internalRepaintUnchecked()
This commit is contained in:
parent
74b19b94b0
commit
621f6cb6a2
1 changed files with 3 additions and 0 deletions
|
|
@ -1845,6 +1845,9 @@ void Component::internalRepaintUnchecked (Rectangle<int> area, bool isEntireComp
|
|||
: cachedImage->invalidate (area)))
|
||||
return;
|
||||
|
||||
if (area.isEmpty())
|
||||
return;
|
||||
|
||||
if (flags.hasHeavyweightPeerFlag)
|
||||
{
|
||||
if (auto* peer = getPeer())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue