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:
parent
18a82b9cd3
commit
2c899c2010
@ -1868,11 +1868,14 @@ bool wxWindowMac::Show(bool show)
|
||||
return FALSE;
|
||||
|
||||
// TODO use visibilityChanged Carbon Event for OSX
|
||||
if ( m_peer )
|
||||
{
|
||||
bool former = MacIsReallyShown() ;
|
||||
|
||||
m_peer->SetVisibility( show , true ) ;
|
||||
if ( former != MacIsReallyShown() )
|
||||
MacPropagateVisibilityChanged() ;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user