From: Stefan Csomor Date: Tue, 20 Jul 2004 14:34:18 +0000 (+0000) Subject: for built-in dialogs, there is no m_peer instance, and still we might have a Refresh... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/065ab451bf9bcf7986049ff82b8b456ecc559aa4 for built-in dialogs, there is no m_peer instance, and still we might have a Refresh call issued, just leave git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index bd85704aad..9d20d9a04c 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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 ) ;