codetools: fixed range check error

git-svn-id: trunk@38419 -
This commit is contained in:
mattias 2012-08-28 14:23:59 +00:00
parent 4cf053d2ba
commit 859caab881

View File

@ -8757,7 +8757,7 @@ begin
//debugln(['TFindDeclarationTool.GetCurrentAtomType ',CurPos.StartPos,' ',CurPos.EndPos,' ',SrcLen,' ',GetAtom]);
if (CurPos.StartPos=CurPos.EndPos) then
Result:=vatSpace
else if (CurPos.StartPos>SrcLen) then
else if (CurPos.StartPos<1) or (CurPos.StartPos>SrcLen) then
Result:=vatNone
else if IsIdentStartChar[Src[CurPos.StartPos]] then begin
if WordIsPredefinedIdentifier.DoItCaseInsensitive(Src,CurPos.StartPos,