]> git.saurik.com Git - wxWidgets.git/commitdiff
for built-in dialogs, there is no m_peer instance, and still we might have a Refresh...
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 20 Jul 2004 14:34:18 +0000 (14:34 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 20 Jul 2004 14:34:18 +0000 (14:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index bd85704aad866751064061bdbc7d29169ba9ff5d..9d20d9a04c43c1c1a4570f38984fe414570cb44b 100644 (file)
@@ -1896,6 +1896,9 @@ void wxWindowMac::GetTextExtent(const wxString& string, int *x, int *y,
 
 void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
 {
+    if ( m_peer == NULL )
+        return ;
+        
 #if TARGET_API_MAC_OSX
     if ( rect == NULL )
         m_peer->SetNeedsDisplay( true ) ;