guard against erases during tlw window destruction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2169,6 +2169,8 @@ void wxWindowMac::WarpPointer (int x_pos, int y_pos)
|
|||||||
|
|
||||||
void wxWindowMac::OnEraseBackground(wxEraseEvent& event)
|
void wxWindowMac::OnEraseBackground(wxEraseEvent& event)
|
||||||
{
|
{
|
||||||
|
if ( MacGetTopLevelWindow() == NULL )
|
||||||
|
return ;
|
||||||
#if TARGET_API_MAC_OSX
|
#if TARGET_API_MAC_OSX
|
||||||
if ( MacGetTopLevelWindow()->MacUsesCompositing() && (m_macBackgroundBrush.Ok() == false || m_macBackgroundBrush.GetStyle() == wxTRANSPARENT ) )
|
if ( MacGetTopLevelWindow()->MacUsesCompositing() && (m_macBackgroundBrush.Ok() == false || m_macBackgroundBrush.GetStyle() == wxTRANSPARENT ) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user