X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ddb4d13585d5235556119fb1937273da9e433a3..28e0798fcdffb5233097060f7d43ffa01df7271d:/src/xrc/xh_listbk.cpp diff --git a/src/xrc/xh_listbk.cpp b/src/xrc/xh_listbk.cpp index c0d9742a6a..470be509ba 100644 --- a/src/xrc/xh_listbk.cpp +++ b/src/xrc/xh_listbk.cpp @@ -19,15 +19,20 @@ #include "wx/xrc/xh_listbk.h" -#include "wx/log.h" +#ifndef WX_PRECOMP + #include "wx/log.h" + #include "wx/sizer.h" +#endif + #include "wx/listbook.h" #include "wx/imaglist.h" -#include "wx/sizer.h" IMPLEMENT_DYNAMIC_CLASS(wxListbookXmlHandler, wxXmlResourceHandler) wxListbookXmlHandler::wxListbookXmlHandler() -: wxXmlResourceHandler(), m_isInside(false), m_listbook(NULL) + :wxXmlResourceHandler(), + m_isInside(false), + m_listbook(NULL) { XRC_ADD_STYLE(wxBK_DEFAULT); XRC_ADD_STYLE(wxBK_LEFT); @@ -81,12 +86,14 @@ wxObject *wxListbookXmlHandler::DoCreateResource() } } else - wxLogError(wxT("Error in resource.")); + { + ReportError(n, "listbookpage child must be a window"); + } return wnd; } else { - wxLogError(wxT("Error in resource: no control within listbook's tag.")); + ReportError("listbookpage must have a window child"); return NULL; } }