mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 17:20:37 +02:00
codetools: AbsoluteToLineCol allow SrcLen and SrcLen+1
git-svn-id: trunk@20512 -
This commit is contained in:
parent
277169e2ca
commit
e88c1fadd4
@ -627,7 +627,7 @@ procedure TSourceLog.AbsoluteToLineCol(Position: integer;
|
||||
var l,r,m:integer;
|
||||
begin
|
||||
BuildLineRanges;
|
||||
if (FLineCount=0) or (Position<1) or (Position>=fSrcLen) then begin
|
||||
if (FLineCount=0) or (Position<1) or (Position>fSrcLen+1) then begin
|
||||
Line:=-1;
|
||||
Column:=-1;
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user