guard against m_peer = NULL in Show()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-10-17 11:51:43 +00:00
parent 18a82b9cd3
commit 2c899c2010

View File

@ -1868,11 +1868,14 @@ bool wxWindowMac::Show(bool show)
return FALSE;
// TODO use visibilityChanged Carbon Event for OSX
bool former = MacIsReallyShown() ;
if ( m_peer )
{
bool former = MacIsReallyShown() ;
m_peer->SetVisibility( show , true ) ;
if ( former != MacIsReallyShown() )
MacPropagateVisibilityChanged() ;
m_peer->SetVisibility( show , true ) ;
if ( former != MacIsReallyShown() )
MacPropagateVisibilityChanged() ;
}
return TRUE;
}