]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props_io.cxx
Update the code a bit more, add a function to retreive the last error string and...
[simgear.git] / simgear / props / props_io.cxx
index e936f5b011f0fb6bab7f22abb350c33ea9fb8dfe..0aba26edbf4e0782109322afe34e98b4ae7bbf10 100644 (file)
@@ -483,7 +483,7 @@ writeNode (ostream &output, const SGPropertyNode * node,
   }
 
                                // If there are children, write them next.
-  if (nChildren > 0 || node->isAlias()) {
+  if (nChildren > 0) {
     doIndent(output, indent);
     output << '<' << name;
     writeAtts(output, node);
@@ -580,6 +580,8 @@ copyProperties (const SGPropertyNode *in, SGPropertyNode *out)
        retval = false;
       break;
     default:
+      if (in->isAlias())
+       break;
       string message = "Unknown internal SGPropertyNode type";
       message += in->getType();
       throw sg_error(message, "SimGear Property Reader");