X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f00af0e9e76648894c0e7b2f89abfafe85fc08e..27b436242eb0257ef471839961250bb3f184fafc:/src/xrc/xh_treebk.cpp diff --git a/src/xrc/xh_treebk.cpp b/src/xrc/xh_treebk.cpp index ed2c6ce3bc..b2394c6dcf 100644 --- a/src/xrc/xh_treebk.cpp +++ b/src/xrc/xh_treebk.cpp @@ -123,7 +123,7 @@ wxObject *wxTreebookXmlHandler::DoCreateResource() } else { - m_tbk->AddSubPage(m_treeContext.Item(depth - 1), wnd, + m_tbk->InsertSubPage(m_treeContext.Item(depth - 1), wnd, GetText(wxT("label")), GetBool(wxT("selected")), imgIndex); }