]> git.mxchange.org Git - flightgear.git/commitdiff
Compile
authorfredb <fredb>
Wed, 24 May 2006 10:51:35 +0000 (10:51 +0000)
committerfredb <fredb>
Wed, 24 May 2006 10:51:35 +0000 (10:51 +0000)
src/GUI/property_list.cxx

index 62129e557aefb7be1ec2772969f6a89a975077d3..022636d5573f401a3fd4775d3686f39fe4db4294 100644 (file)
@@ -289,14 +289,16 @@ int PropertyList::nodeNameCompare(const void *ppNode1, const void *ppNode2)
 
 
 void PropertyList::setValue(const char *s)
-try {
-    SGPropertyNode *p = fgGetNode(s, false);
-    if (p)
-        setCurrent(p);
-    else
-        throw stdString("node doesn't exist");
-} catch (const stdString& m) {
-    SG_LOG(SG_GENERAL, SG_DEBUG, "property-list node `" << s << "': " << m);
+{
+    try {
+        SGPropertyNode *p = fgGetNode(s, false);
+        if (p)
+            setCurrent(p);
+        else
+            throw stdString("node doesn't exist");
+    } catch (const stdString& m) {
+        SG_LOG(SG_GENERAL, SG_DEBUG, "property-list node `" << s << "': " << m);
+    }
 }