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/branches/WX_2_4_BRANCH@18311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-17 22:52:48 +00:00
parent 7f65647a0b
commit aca021757f
3 changed files with 3 additions and 3 deletions

View File

@@ -1110,7 +1110,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);

View File

@@ -120,7 +120,7 @@ Example:
</object>
<object_ref name="bar" ref="foo">
<value>bar</value> <!-- override! -->
</object>
</object_ref>
is identical to:

View File

@@ -1110,7 +1110,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);