X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..6a205442c40cd6e22efab15fd7170a0aeab99cae:/contrib/src/xrc/xh_notbk.cpp diff --git a/contrib/src/xrc/xh_notbk.cpp b/contrib/src/xrc/xh_notbk.cpp index 3c427b6365..27d6a5ee40 100644 --- a/contrib/src/xrc/xh_notbk.cpp +++ b/contrib/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)