Melchior: Only change types when explicitly requested.

This commit is contained in:
ehofman
2005-05-09 16:18:41 +00:00
parent 64ab59c0e0
commit e19091d809

View File

@@ -173,7 +173,6 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
// Got the index, so grab the node.
SGPropertyNode * node = st.node->getChild(name, index, true);
node->clearValue();
// Get the access-mode attributes,
// but don't set yet (in case they
@@ -215,7 +214,10 @@ PropsVisitor::startElement (const char * name, const XMLAttributes &atts)
}
}
push_state(node, atts.getValue("type"), mode);
const char *type = atts.getValue("type");
if (type)
node->clearValue();
push_state(node, type, mode);
}
}