Fixed: list index out of bounds
This commit is contained in:
parent
c82652a873
commit
c5ae6a8cef
@ -196,8 +196,12 @@ begin
|
||||
if SectionStack.Count > 0 then
|
||||
begin
|
||||
lastItem := Pred(SectionStack.Count);
|
||||
|
||||
FSection := (SectionStack[Pred(lastItem)] as IXMLSection);
|
||||
|
||||
if lastItem < 0 then
|
||||
FSection := Configuration
|
||||
else
|
||||
FSection := (SectionStack[Pred(lastItem)] as IXMLSection);
|
||||
|
||||
SectionStack.Delete(lastItem);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user