1
0
Fork 0

use getNode instead of hasValue (it's just a dir node and doesn't need a value)

This commit is contained in:
mfranz 2007-06-09 10:15:50 +00:00
parent 01f9b2d7b2
commit dbdfc9012b

View file

@ -1369,7 +1369,7 @@ do_save_xml_from_proptree(const SGPropertyNode * node)
SGPropertyNode * sourcenode;
if (node->hasValue("sourcenode"))
sourcenode = fgGetNode(node->getStringValue("sourcenode"), true);
else if (node->hasValue("data"))
else if (node->getNode("data", false))
sourcenode = const_cast<SGPropertyNode *>(node)->getNode("data");
else
return false;