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:
@@ -2133,7 +2133,8 @@ void wxWindowMac::Freeze()
|
|||||||
#if TARGET_API_MAC_OSX
|
#if TARGET_API_MAC_OSX
|
||||||
if ( !m_frozenness++ )
|
if ( !m_frozenness++ )
|
||||||
{
|
{
|
||||||
m_peer->SetDrawingEnabled( false ) ;
|
if ( m_peer && m_peer->Ok() )
|
||||||
|
m_peer->SetDrawingEnabled( false ) ;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -2146,8 +2147,11 @@ void wxWindowMac::Thaw()
|
|||||||
|
|
||||||
if ( !--m_frozenness )
|
if ( !--m_frozenness )
|
||||||
{
|
{
|
||||||
m_peer->SetDrawingEnabled( true ) ;
|
if ( m_peer && m_peer->Ok() )
|
||||||
m_peer->InvalidateWithChildren() ;
|
{
|
||||||
|
m_peer->SetDrawingEnabled( true ) ;
|
||||||
|
m_peer->InvalidateWithChildren() ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user