mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 15:30:48 +02:00
synedit: don't use LINE_LEN_UNKNOWN as actual line length in LengthOfLongestLine, fixes issue #17174
git-svn-id: trunk@28830 -
This commit is contained in:
parent
629b64d29f
commit
ceb5f99b6a
@ -321,8 +321,10 @@ var
|
||||
begin
|
||||
if (fIndexOfLongestLine >= 0) and (fIndexOfLongestLine < Count) then begin
|
||||
Result := FTabData[fIndexOfLongestLine];
|
||||
if Result >= NO_TAB_IN_LINE_OFFSET then Result := Result - NO_TAB_IN_LINE_OFFSET;
|
||||
exit;
|
||||
if Result <> LINE_LEN_UNKNOWN then begin
|
||||
if Result >= NO_TAB_IN_LINE_OFFSET then Result := Result - NO_TAB_IN_LINE_OFFSET;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user