X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc2cc2c4e0d27edc3128b33a907916249d18d692..43a302f200f1e9f5f21380bbc7ba74ad8c22d6d6:/src/mac/carbon/overlay.cpp?ds=sidebyside 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 ; }