X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..c36f1fc7c9c91a008b308cf6775f2f7a134ef2f1:/src/xrc/xh_notbk.cpp?ds=sidebyside diff --git a/src/xrc/xh_notbk.cpp b/src/xrc/xh_notbk.cpp index 3c427b6365..27d6a5ee40 100644 --- a/src/xrc/xh_notbk.cpp +++ b/src/xrc/xh_notbk.cpp @@ -27,6 +27,8 @@ #include "wx/notebook.h" #include "wx/sizer.h" +IMPLEMENT_DYNAMIC_CLASS(wxNotebookXmlHandler, wxXmlResourceHandler) + wxNotebookXmlHandler::wxNotebookXmlHandler() : wxXmlResourceHandler(), m_isInside(FALSE), m_notebook(NULL) { @@ -50,8 +52,8 @@ wxObject *wxNotebookXmlHandler::DoCreateResource() { bool old_ins = m_isInside; m_isInside = FALSE; - m_isInside = old_ins; wxObject *item = CreateResFromNode(n, m_notebook, NULL); + m_isInside = old_ins; wxWindow *wnd = wxDynamicCast(item, wxWindow); if (wnd)