X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00393283ff4ad9e2185096e355e1d58ec95899d1..3a922bb4bd8dbcb04e31e324648c2912e167e0cd:/src/xrc/xmlres.cpp diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 79d0ef314a..ef1e2f2761 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -210,7 +210,7 @@ bool wxXmlResource::AttachUnknownControl(const wxString& name, } -void wxXmlResource::ProcessPlatformProperty(wxXmlNode *node) +static void ProcessPlatformProperty(wxXmlNode *node) { wxString s; bool isok; @@ -245,14 +245,17 @@ void wxXmlResource::ProcessPlatformProperty(wxXmlNode *node) } if (isok) + { ProcessPlatformProperty(c); + c = c->GetNext(); + } else { node->RemoveChild(c); + wxXmlNode *c2 = c->GetNext(); delete c; + c = c2; } - - c = c->GetNext(); } }