mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 10:40:24 +02:00
IDE, Printing: Fix printing the source or selection would miss the last line out (Bug #13267)
git-svn-id: trunk@19000 -
This commit is contained in:
parent
4ede257fc0
commit
b8e7143c97
@ -84,7 +84,7 @@ begin
|
||||
LineNum := Pred(PageNum) * LinesPerPage + l;
|
||||
|
||||
//check if end of text is reached
|
||||
if LineNum < Text.Count then
|
||||
if LineNum <= Text.Count then
|
||||
begin
|
||||
if ShowLineNumbers then
|
||||
s := Format('%4d: ',[LineNum])
|
||||
|
Loading…
Reference in New Issue
Block a user