X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc2cc2c4e0d27edc3128b33a907916249d18d692..0c1cc9483ecba053bc9a0983a4a8d48898e334f2:/src/mac/carbon/overlay.cpp diff --git a/src/mac/carbon/overlay.cpp b/src/mac/carbon/overlay.cpp index 7031ebf596..3ae300276a 100644 --- a/src/mac/carbon/overlay.cpp +++ b/src/mac/carbon/overlay.cpp @@ -149,7 +149,7 @@ void wxOverlayImpl::EndDrawing( wxDC* dc) wxGCDCImpl *win_impl = wxDynamicCast(impl,wxGCDCImpl); if (win_impl) win_impl->SetGraphicsContext(NULL); - + CGContextFlush( m_overlayContext ); } @@ -166,7 +166,10 @@ void wxOverlayImpl::Reset() { #ifndef __LP64__ OSStatus err = QDEndCGContext(GetWindowPort(m_overlayWindow), &m_overlayContext); - wxASSERT_MSG( err == noErr , _("Couldn't end the context on the overlay window") ); + if ( err != noErr ) + { + wxFAIL_MSG("Couldn't end the context on the overlay window"); + } #endif m_overlayContext = NULL ; }