tvplanit: Fix writing of xml file by TVpXmlDatastore if ParentNode is empty.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4946 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
f51e3d26b3
commit
350bb0cdd3
@ -250,9 +250,8 @@ begin
|
||||
Result := ADoc.FindNode(STORE_NODE_NAME);
|
||||
// no: attach as child of root
|
||||
if Result = nil then begin
|
||||
rootnode := ADoc.FirstChild;
|
||||
Result := ADoc.CreateElement(STORE_NODE_NAME);
|
||||
rootnode.AppendChild(Result);
|
||||
ADoc.AppendChild(Result);
|
||||
end;
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user