mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 22:58:50 +02:00
LazUtils: XmlConfig, fix saving default (delete) for enum values
This commit is contained in:
parent
b1847337ca
commit
7fc68aa656
@ -623,7 +623,7 @@ procedure TXMLConfig.SetDeleteValue(const APath: String; const AValue,
|
||||
DefValue; const APTypeInfo: PTypeInfo);
|
||||
begin
|
||||
if CompareMem(@AValue, @DefValue, SizeOfTypeInfo(APTypeInfo)) then
|
||||
DeletePath(APath)
|
||||
DeleteValue(APath)
|
||||
else
|
||||
SetValue(APath, ValueWithTypeInfoToString(AValue, APTypeInfo));
|
||||
end;
|
||||
@ -641,7 +641,7 @@ begin
|
||||
else t := False;
|
||||
end;
|
||||
if t then
|
||||
DeletePath(APath)
|
||||
DeleteValue(APath)
|
||||
else
|
||||
SetValue(APath, AValue, APTypeInfo);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user