EditorOptions: Fixed possible endless loop

git-svn-id: trunk@21183 -
This commit is contained in:
martin 2009-08-12 01:38:48 +00:00
parent bb7f662fae
commit 5e096085eb

View File

@ -1248,8 +1248,10 @@ begin
while (i >= 0) do while (i >= 0) do
begin begin
e := PreviewSyn.Attribute[i]; e := PreviewSyn.Attribute[i];
if e.Name = '' then if e.Name = '' then begin
dec(i);
continue; continue;
end;
if e.Name = AdditionalHighlightAttributes[AddAttr] then if e.Name = AdditionalHighlightAttributes[AddAttr] then
begin begin
Special := True; Special := True;