]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/glcanvas.cpp
delete children in ~wxWindow dtor and not in the base class ~wxWindowNative as it...
[wxWidgets.git] / src / mac / carbon / glcanvas.cpp
index 732de7df9f9f4729844e56ecdd5d53b13f83e397..facd34a510bd3229c5d265e40aca9488619a47fc 100644 (file)
@@ -331,7 +331,7 @@ bool wxGLCanvas::Show(bool show)
     }
     else
     {
-        if ( IsControlVisible( *m_peer ) && !m_macCanvasIsShown )
+        if ( m_peer->IsVisible()&& !m_macCanvasIsShown )
         {
             m_macCanvasIsShown = true ;
             SetViewport() ;
@@ -343,7 +343,7 @@ bool wxGLCanvas::Show(bool show)
 
 void wxGLCanvas::MacVisibilityChanged() 
 {
-    if ( !IsControlVisible( *m_peer ) )
+    if ( !MacIsReallyShown() )
     {
         if ( m_macCanvasIsShown )
         {