X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b935c45dee0e6036de3e83c44015d14d3958ac7f..72625b36b6fdaea839a5132e8f5d52dea7155bec:/src/xrc/xh_bmpcbox.cpp?ds=sidebyside diff --git a/src/xrc/xh_bmpcbox.cpp b/src/xrc/xh_bmpcbox.cpp index 464f75b79f..f88dc7bc3f 100644 --- a/src/xrc/xh_bmpcbox.cpp +++ b/src/xrc/xh_bmpcbox.cpp @@ -26,6 +26,8 @@ #include "wx/bmpcbox.h" +#include "wx/xml/xml.h" + IMPLEMENT_DYNAMIC_CLASS(wxBitmapComboBoxXmlHandler, wxXmlResourceHandler) wxBitmapComboBoxXmlHandler::wxBitmapComboBoxXmlHandler() @@ -44,8 +46,7 @@ wxObject *wxBitmapComboBoxXmlHandler::DoCreateResource() { if ( !m_combobox ) { - wxLogError(_("XRC syntex error: ownerdrawnitem only allowed within " - " a bitmapcombobox!")); + ReportError("ownerdrawnitem only allowed within a wxBitmapComboBox"); return NULL; }