]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_notbk.cpp
Applied patch [ 809066 ] Cleanup for text2rtf
[wxWidgets.git] / contrib / src / xrc / xh_notbk.cpp
index 3c427b6365482574effa4279c0ff90d97256dcf9..27d6a5ee400975003bc7a61dfb324982f48ef65e 100644 (file)
@@ -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)