]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/window.cpp
Fixed typo
[wxWidgets.git] / src / mac / carbon / window.cpp
index df76db2af761ceb5be1185ca314542a04da296cf..f24329b6076375cb7ab5a635d4501a340676aaf4 100644 (file)
@@ -956,7 +956,7 @@ void wxWindowMac::MacUpdateControlFont()
 
 bool wxWindowMac::SetFont(const wxFont& font)
 {
-    bool retval = !wxWindowBase::SetFont( font ) ;
+    bool retval = wxWindowBase::SetFont( font ) ;
     
     MacUpdateControlFont() ;
     
@@ -2133,7 +2133,8 @@ void wxWindowMac::Freeze()
 #if TARGET_API_MAC_OSX
     if ( !m_frozenness++ )
     {
-        m_peer->SetDrawingEnabled( false ) ;
+        if ( m_peer && m_peer->Ok() )
+            m_peer->SetDrawingEnabled( false ) ;
     }
 #endif
 }
@@ -2146,8 +2147,11 @@ void wxWindowMac::Thaw()
 
     if ( !--m_frozenness )
     {
-        m_peer->SetDrawingEnabled( true ) ;
-        m_peer->InvalidateWithChildren() ;
+        if ( m_peer && m_peer->Ok() )
+        {
+            m_peer->SetDrawingEnabled( true ) ;
+            m_peer->InvalidateWithChildren() ;
+        }
     }
 #endif
 }