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
This commit is contained in:
Stefan Csomor
2004-07-20 14:34:18 +00:00
parent d88ffaaa76
commit 065ab451bf

View 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 ) ;