From dbdfc9012b2b6ab1f0c277713dffc691cc87a80a Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Sat, 9 Jun 2007 10:15:50 +0000
Subject: [PATCH] use getNode instead of hasValue (it's just a dir node and
 doesn't need a value)

---
 src/Main/fg_commands.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx
index b5341f8f5..fad5cfada 100644
--- a/src/Main/fg_commands.cxx
+++ b/src/Main/fg_commands.cxx
@@ -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;