use getNode instead of hasValue (it's just a dir node and doesn't need a value)
This commit is contained in:
parent
01f9b2d7b2
commit
dbdfc9012b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue