]> git.saurik.com Git - wxWidgets.git/commitdiff
add implementation fallback for not yet instantiated control peers
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 12 Jul 2004 07:04:00 +0000 (07:04 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 12 Jul 2004 07:04:00 +0000 (07:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index b793d62377058ddea8d0c845d065b76e74e53147..e13bc1ca5e9921cd3784c359c876205d350fb207 100644 (file)
@@ -1825,8 +1825,9 @@ bool wxWindowMac::MacIsReallyShown()
 {
     // only under OSX the visibility of the TLW is taken into account
 #if TARGET_API_MAC_OSX
-    return m_peer->IsVisible();
-#else
+    if ( m_peer && m_peer->Ok() )
+        return m_peer->IsVisible();
+#endif
     wxWindow* win = this ;
     while( win->IsShown()  )
     {
@@ -1839,7 +1840,6 @@ bool wxWindowMac::MacIsReallyShown()
             
     } ;
     return false ;
-#endif
 }
 
 bool wxWindowMac::MacIsReallyEnabled()