From 9604277484edb668d1768150b94dbe0cf3307941 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 19 Mar 2006 07:10:10 +0000 Subject: [PATCH] create /sim/gui if it doesn't exist --- src/GUI/new_gui.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index 49fc3fbc5..4cb0fe882 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -306,7 +306,7 @@ NewGUI::setStyle (void) //puSetDefaultStyle(); int which = fgGetInt("/sim/gui/current-style", 0); - SGPropertyNode *sim = globals->get_props()->getNode("sim/gui"); + SGPropertyNode *sim = globals->get_props()->getNode("sim/gui", true); SGPropertyNode *n = sim->getChild("style", which); if (!n) n = sim->getChild("style", 0, true); -- 2.39.5