]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props.cxx
Merge branch 'releases/2.2.0' into next
[simgear.git] / simgear / props / props.cxx
index fce6e8ab31c54c0ec0c3db3f2dbccb593e9cadb5..12a8fe833fc4c354ed2bf25febc020f904499f8a 100644 (file)
@@ -1615,8 +1615,12 @@ bool SGPropertyNode::tie (const SGRawValue<const char *> &rawValue,
     _tied = true;
     _value.val = rawValue.clone();
 
-    if (useDefault)
+    if (useDefault) {
+        int save_attributes = getAttributes();
+        setAttribute( WRITE, true );
         setStringValue(old_val.c_str());
+        setAttributes( save_attributes );
+    }
 
     return true;
 }