X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fprops%2Fprops.cxx;h=12a8fe833fc4c354ed2bf25febc020f904499f8a;hb=feab25d0bee2c65a9b5c0a27802fb71c9a1a1190;hp=fce6e8ab31c54c0ec0c3db3f2dbccb593e9cadb5;hpb=ce67657e0a69faef0ac8ab7660b12beb97cd6799;p=simgear.git diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index fce6e8ab..12a8fe83 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -1615,8 +1615,12 @@ bool SGPropertyNode::tie (const SGRawValue &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; }