mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-14 08:51:45 +01:00
xmlcfg: fixed DeletePath
git-svn-id: trunk@25817 -
This commit is contained in:
parent
2a52b833dc
commit
9e6de7a287
@ -335,8 +335,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TXMLConfig.DeletePath(const APath: string);
|
procedure TXMLConfig.DeletePath(const APath: string);
|
||||||
|
var
|
||||||
|
Node: TDOMNode;
|
||||||
|
ParentNode: TDOMNode;
|
||||||
begin
|
begin
|
||||||
InternalCleanNode(InternalFindNode(APath,length(APath)));
|
Node:=InternalFindNode(APath,length(APath));
|
||||||
|
if (Node=nil) or (Node.ParentNode=nil) then exit;
|
||||||
|
ParentNode:=Node.ParentNode;
|
||||||
|
ParentNode.RemoveChild(Node);
|
||||||
|
InternalCleanNode(ParentNode);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TXMLConfig.DeleteValue(const APath: string);
|
procedure TXMLConfig.DeleteValue(const APath: string);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user