don't let MacIsReallyShown climb over toplevel windows, otherwise tlws with invisible parents are not showing their controls either

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-02-08 05:42:00 +00:00
parent 3a7d5f7cc3
commit 86deae1ef1
2 changed files with 2 additions and 2 deletions

View File

@@ -846,7 +846,7 @@ void wxWindowMac::MacSuperEnabled( bool enabled )
bool wxWindowMac::MacIsReallyShown() const
{
if ( m_isShown && (m_parent != NULL) ) {
if ( m_isShown && (m_parent != NULL && !IsTopLevel() ) ) {
return m_parent->MacIsReallyShown();
}
return m_isShown;