From 5e096085ebdd5eb8313d90f5a0f95547e61c8a5b Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 12 Aug 2009 01:38:48 +0000 Subject: [PATCH] EditorOptions: Fixed possible endless loop git-svn-id: trunk@21183 - --- ide/frames/editor_color_options.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ide/frames/editor_color_options.pas b/ide/frames/editor_color_options.pas index 369625dc49..5c8763acb4 100644 --- a/ide/frames/editor_color_options.pas +++ b/ide/frames/editor_color_options.pas @@ -1248,8 +1248,10 @@ begin while (i >= 0) do begin e := PreviewSyn.Attribute[i]; - if e.Name = '' then + if e.Name = '' then begin + dec(i); continue; + end; if e.Name = AdditionalHighlightAttributes[AddAttr] then begin Special := True;