]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/window.cpp
made Blur() methods const (bug 180914)
[wxWidgets.git] / src / mac / carbon / window.cpp
index 56d06a2612a666cc42619e312ebcbe1ca1f4623c..9d32605485993c81ad7af2b639b107fbfb589826 100644 (file)
@@ -2832,7 +2832,9 @@ void wxWindowMac::ClearBackground()
 void wxWindowMac::Update()
 {
 #if TARGET_API_MAC_OSX
-    MacGetTopLevelWindow()->MacPerformUpdates() ;
+    wxTopLevelWindowMac* top = MacGetTopLevelWindow();
+    if (top)
+        top->MacPerformUpdates() ;
 #else
     ::Draw1Control( m_peer->GetControlRef() ) ;
 #endif