From 86deae1ef1ce9fdef44ed0bdacedbd8966d863f4 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 8 Feb 2004 05:42:00 +0000 Subject: [PATCH] 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 --- src/mac/carbon/window.cpp | 2 +- src/mac/window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 5e485ecf64..bfff87c13d 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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; diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 5e485ecf64..bfff87c13d 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -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; -- 2.47.2