From: Julian Smart Date: Tue, 17 Dec 2002 22:52:48 +0000 (+0000) Subject: Partially applied [ 632321 ] XRC object_ref fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0fa2e104c53c52815172910a71a855c34746c6fa?ds=sidebyside Partially applied [ 632321 ] XRC object_ref fix 1. Fix object_ref so it at least works, with this I mean XRC was not even handling the little sample in tn0014.txt correct. Hans Van Leemputten (hansvl) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/src/xrc/xmlres.cpp b/contrib/src/xrc/xmlres.cpp index b711c95440..22f6b0a696 100644 --- a/contrib/src/xrc/xmlres.cpp +++ b/contrib/src/xrc/xmlres.cpp @@ -1109,7 +1109,7 @@ void wxXmlResourceHandler::CreateChildren(wxObject *parent, bool this_hnd_only) while (n) { if (n->GetType() == wxXML_ELEMENT_NODE && - n->GetName() == wxT("object")) + (n->GetName() == wxT("object") || n->GetName() == wxT("object_ref"))) { if (this_hnd_only && CanHandle(n)) CreateResource(n, parent, NULL); diff --git a/docs/tech/tn0014.txt b/docs/tech/tn0014.txt index 21783d1812..08a9cfaf4c 100644 --- a/docs/tech/tn0014.txt +++ b/docs/tech/tn0014.txt @@ -120,7 +120,7 @@ Example: bar - + is identical to: diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index b711c95440..22f6b0a696 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -1109,7 +1109,7 @@ void wxXmlResourceHandler::CreateChildren(wxObject *parent, bool this_hnd_only) while (n) { if (n->GetType() == wxXML_ELEMENT_NODE && - n->GetName() == wxT("object")) + (n->GetName() == wxT("object") || n->GetName() == wxT("object_ref"))) { if (this_hnd_only && CanHandle(n)) CreateResource(n, parent, NULL);