X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34a3ed019b89012199e1a88f540010653bec90d0..5c2cdf24ebc38be8f93cb1f80f6d9a1456531ff2:/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 ) ; }