From a2d95ac742f91ee0c3c49e104f6c4f54e9e34943 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 9 Mar 2002 11:14:29 +0000 Subject: [PATCH] Patch from Martin Dressler to ensure that values as well as children get written with write-all. --- simgear/misc/props_io.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5