X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c7b506103cfc078a821860766e31c47d595e07f..947f3b358cae28b63c6f69af21c493cab355fb7e:/src/mac/carbon/notebmac.cpp diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index 7f82d490f7..6d00a7130d 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -413,7 +413,10 @@ void wxNotebook::MacSetupTabs() wxMacCreateBitmapButton( &info, bmap ) ; OSStatus err = m_peer->SetData( ii + 1, kControlTabImageContentTag, &info ); - wxASSERT_MSG( err == noErr , wxT("Error when setting icon on tab") ) ; + if ( err != noErr ) + { + wxFAIL_MSG("Error when setting icon on tab"); + } wxMacReleaseBitmapButton( &info ) ; }