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);