]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
Filter out subframes from the ie backend history and the sample. Also document that...
[wxWidgets.git] / src / xrc / xmlres.cpp
index 1b62dbc3dcfe6a78e7099f748c5309d2ff1ed48c..96650224bb76ed5e12d69f10aebd0ed6f26c22cb 100644 (file)
@@ -983,7 +983,10 @@ wxXmlResource::DoCreateResFromNode(wxXmlNode& node,
             return NULL;
         }
 
-        if ( !node.GetChildren() )
+        const bool hasOnlyRefAttr = node.GetAttributes() != NULL &&
+                                    node.GetAttributes()->GetNext() == NULL;
+
+        if ( hasOnlyRefAttr && !node.GetChildren() )
         {
             // In the typical, simple case, <object_ref> is used to link
             // to another node and doesn't have any content of its own that