X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/733b7d1eb3f08709abec2c008be115a5bd7a6933..64894596ea0351499a68849cb17233d2f16f850d:/src/xrc/xh_bmpcbox.cpp?ds=sidebyside diff --git a/src/xrc/xh_bmpcbox.cpp b/src/xrc/xh_bmpcbox.cpp index 138d2ee58b..464f75b79f 100644 --- a/src/xrc/xh_bmpcbox.cpp +++ b/src/xrc/xh_bmpcbox.cpp @@ -21,6 +21,7 @@ #ifndef WX_PRECOMP #include "wx/intl.h" + #include "wx/log.h" #endif #include "wx/bmpcbox.h" @@ -41,7 +42,12 @@ wxObject *wxBitmapComboBoxXmlHandler::DoCreateResource() { if (m_class == wxT("ownerdrawnitem")) { - wxCHECK_MSG(m_combobox, NULL, wxT("Incorrect syntax of XRC resource: ownerdrawnitem not within a bitmapcombobox!")); + if ( !m_combobox ) + { + wxLogError(_("XRC syntex error: ownerdrawnitem only allowed within " + " a bitmapcombobox!")); + return NULL; + } m_combobox->Append(GetText(wxT("text")), GetBitmap(wxT("bitmap")));