]> git.mxchange.org Git - simgear.git/commitdiff
Patch from Martin Dressler to ensure that values as well as children
authordavid <david>
Sat, 9 Mar 2002 11:14:29 +0000 (11:14 +0000)
committerdavid <david>
Sat, 9 Mar 2002 11:14:29 +0000 (11:14 +0000)
get written with write-all.

simgear/misc/props_io.cxx

index 7c1f8bee551989f11d90f398796ace41662a9cc9..54080292dc87d965311444cca41e53b91234e5db 100644 (file)
@@ -442,7 +442,7 @@ writeNode (ostream &output, const SGPropertyNode * node,
 
                                // If there is a literal value,
                                // write it first.
-  if (node->hasValue() && node->getAttribute(SGPropertyNode::ARCHIVE)) {
+  if (node->hasValue() && (write_all || node->getAttribute(SGPropertyNode::ARCHIVE))) {
     doIndent(output, indent);
     output << '<' << name;
     writeAtts(output, node);