REMOVED = 8,
TRACE_READ = 16,
TRACE_WRITE = 32,
- USERARCHIVE = 64
+ USERARCHIVE = 64,
+ PRESERVE = 128
+ // beware: if you add another attribute here,
+ // also update value of "LAST_USED_ATTRIBUTE".
};
_type = EXTENDED;
_tied = true;
_value.val = rawValue.clone();
- if (useDefault)
+ if (useDefault) {
+ int save_attributes = getAttributes();
+ setAttribute( WRITE, true );
setValue(old_val);
+ setAttributes( save_attributes );
+ }
return true;
}