* fix from Michalis K. for nesting depth of XMLs (# 11957)

git-svn-id: trunk@11644 -
This commit is contained in:
marco 2008-08-24 08:23:02 +00:00
parent e89ee84c53
commit 622ace494e

View File

@ -2979,9 +2979,9 @@ end;
procedure TXMLReader.PushVC(aElDef: TDOMElementDef);
begin
if FNesting = Length(FValidator) then
SetLength(FValidator, FNesting * 2);
Inc(FNesting);
if FNesting >= Length(FValidator) then
SetLength(FValidator, FNesting * 2);
FValidator[FNesting].FElementDef := aElDef;
FValidator[FNesting].FCurCP := nil;
FValidator[FNesting].FFailed := False;