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:
martin 2009-03-15 16:54:08 +00:00
parent 4ede257fc0
commit b8e7143c97

View File

@ -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])