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,6 +2133,7 @@ void wxWindowMac::Freeze()
|
|||||||
#if TARGET_API_MAC_OSX
|
#if TARGET_API_MAC_OSX
|
||||||
if ( !m_frozenness++ )
|
if ( !m_frozenness++ )
|
||||||
{
|
{
|
||||||
|
if ( m_peer && m_peer->Ok() )
|
||||||
m_peer->SetDrawingEnabled( false ) ;
|
m_peer->SetDrawingEnabled( false ) ;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -2145,10 +2146,13 @@ void wxWindowMac::Thaw()
|
|||||||
wxASSERT_MSG( m_frozenness > 0, _T("Thaw() without matching Freeze()") );
|
wxASSERT_MSG( m_frozenness > 0, _T("Thaw() without matching Freeze()") );
|
||||||
|
|
||||||
if ( !--m_frozenness )
|
if ( !--m_frozenness )
|
||||||
|
{
|
||||||
|
if ( m_peer && m_peer->Ok() )
|
||||||
{
|
{
|
||||||
m_peer->SetDrawingEnabled( true ) ;
|
m_peer->SetDrawingEnabled( true ) ;
|
||||||
m_peer->InvalidateWithChildren() ;
|
m_peer->InvalidateWithChildren() ;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user