Fixing crash under BigSur
We get a late redraw event in the current 11.X versions, fixes #19030
This commit is contained in:
parent
b58ee58a7b
commit
86c1fe4c79
@ -2310,6 +2310,9 @@ void wxWidgetCocoaImpl::drawRect(void* rect, WXWidget slf, void *WXUNUSED(_cmd))
|
||||
// Restrict the update region to the shape of the window, if any, and also
|
||||
// remember the region that we need to clear later.
|
||||
wxNonOwnedWindow* const tlwParent = wxpeer->MacGetTopLevelWindow();
|
||||
if ( tlwParent == NULL )
|
||||
return;
|
||||
|
||||
const bool isTopLevel = tlwParent == wxpeer;
|
||||
wxRegion clearRgn;
|
||||
if ( tlwParent->GetWindowStyle() & wxFRAME_SHAPED )
|
||||
|
Loading…
Reference in New Issue
Block a user