From ba27bab1b220462b3e975d538fdb7a773860fccf Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 17 Jul 2008 08:38:13 +0000 Subject: [PATCH] make sure that the validation nodes are readable and writable --- src/Main/util.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Main/util.cxx b/src/Main/util.cxx index 909cbad12..e790e27e7 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -203,7 +203,12 @@ const char *fgValidatePath (const char *str, bool write) static SGPropertyNode_ptr r, w; if (!r) { r = fgGetNode("/sim/paths/validate/read", true); + r->setAttribute(SGPropertyNode::READ, true); + r->setAttribute(SGPropertyNode::WRITE, true); + w = fgGetNode("/sim/paths/validate/write", true); + w->setAttribute(SGPropertyNode::READ, true); + w->setAttribute(SGPropertyNode::WRITE, true); } SGPropertyNode *prop = write ? w : r; prop->setStringValue(str);