Check for m_peer != NULL in Freeze and Thaw

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-09-03 19:04:17 +00:00
parent ee8bee6c8c
commit 52ef5c3c40

View File

@ -2133,7 +2133,8 @@ void wxWindowMac::Freeze()
#if TARGET_API_MAC_OSX
if ( !m_frozenness++ )
{
m_peer->SetDrawingEnabled( false ) ;
if ( m_peer && m_peer->Ok() )
m_peer->SetDrawingEnabled( false ) ;
}
#endif
}
@ -2146,8 +2147,11 @@ void wxWindowMac::Thaw()
if ( !--m_frozenness )
{
m_peer->SetDrawingEnabled( true ) ;
m_peer->InvalidateWithChildren() ;
if ( m_peer && m_peer->Ok() )
{
m_peer->SetDrawingEnabled( true ) ;
m_peer->InvalidateWithChildren() ;
}
}
#endif
}