IDE: codehelp: made range checks more robust

git-svn-id: trunk@14302 -
This commit is contained in:
mattias 2008-02-28 13:25:11 +00:00
parent cab6632f4c
commit abdd8c5aa4

View File

@ -469,7 +469,7 @@ begin
while (StartPos<=length(Result))
and (Result[StartPos] in [' ',#9,#10,#13]) do
inc(StartPos);
if (Result<>'') and (Result[StartPos]='<') then begin
if (StartPos<=length(Result)) and (Result[StartPos]='<') then begin
inc(StartPos);
FindEndOfTag(Result,StartPos);
while (StartPos<=length(Result))