From: david Date: Sat, 9 Mar 2002 11:14:29 +0000 (+0000) Subject: Patch from Martin Dressler to ensure that values as well as children X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2d95ac742f91ee0c3c49e104f6c4f54e9e34943;p=simgear.git Patch from Martin Dressler to ensure that values as well as children get written with write-all. --- diff --git a/simgear/misc/props_io.cxx b/simgear/misc/props_io.cxx index 7c1f8bee..54080292 100644 --- a/simgear/misc/props_io.cxx +++ b/simgear/misc/props_io.cxx @@ -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);