X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..8b0975a38e83e3a5a3874c4526bc0cee279305be:/src/xrc/xh_notbk.cpp diff --git a/src/xrc/xh_notbk.cpp b/src/xrc/xh_notbk.cpp index e97598a225..5248793026 100644 --- a/src/xrc/xh_notbk.cpp +++ b/src/xrc/xh_notbk.cpp @@ -19,9 +19,9 @@ #pragma hdrstop #endif -#include "wx/xrc/xh_notbk.h" +#if wxUSE_XRC && wxUSE_NOTEBOOK -#if wxUSE_NOTEBOOK +#include "wx/xrc/xh_notbk.h" #include "wx/log.h" #include "wx/notebook.h" @@ -88,10 +88,7 @@ wxObject *wxNotebookXmlHandler::DoCreateResource() m_isInside = old_ins; m_notebook = old_par; - if (GetBool(wxT("usenotebooksizer"), false)) - return new wxNotebookSizer(nb); - else - return nb; + return nb; } } @@ -101,4 +98,4 @@ bool wxNotebookXmlHandler::CanHandle(wxXmlNode *node) (m_isInside && IsOfClass(node, wxT("notebookpage")))); } -#endif +#endif // wxUSE_XRC && wxUSE_NOTEBOOK