]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
More build system polishing.. mostly. Some stuff ported over from
[wxWidgets.git] / src / xrc / xmlres.cpp
index 79d0ef314af365f89cbaca41a40e3db9756708a4..ef1e2f2761309e848237f3f6663dd6c66fe2b486 100644 (file)
@@ -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();
     }
 }