synedit: fixed painting a line too much, bug #11481

git-svn-id: trunk@15542 -
This commit is contained in:
mattias 2008-06-23 14:32:21 +00:00
parent 5980e1a71e
commit e2cf50c737

View File

@ -2698,7 +2698,7 @@ begin
{$ENDIF},
TopLine);
nL2 := Min({$IFDEF SYN_LAZARUS}
ScreenRowToRow((rcClip.Bottom-1) div fTextHeight+1),
ScreenRowToRow((rcClip.Bottom-1) div fTextHeight),
{$ELSE}
TopLine + (rcClip.Bottom + fTextHeight - 1) div fTextHeight,
{$ENDIF}