IDE: code observer: fixed endless loop

git-svn-id: trunk@29909 -
This commit is contained in:
mattias 2011-03-19 14:13:23 +00:00
parent 910c1dfb56
commit ab044c572f

View File

@ -1278,6 +1278,7 @@ var
end;
begin
if EndPos>Tool.SrcLen then EndPos:=Tool.SrcLen+1;
if (StartPos<1) or (StartPos>=EndPos) then exit;
CheckWrongIndentation:=cefcWrongIndentation in CodeExplorerOptions.ObserverCategories;
FindUnnamedConstants:=cefcUnnamedConsts in CodeExplorerOptions.ObserverCategories;