synedit: improved using clipping rect during paint from Martin, bug #11654

git-svn-id: trunk@15786 -
This commit is contained in:
mattias 2008-07-15 19:06:55 +00:00
parent 1207c0e3f4
commit a20b096442

View File

@ -2725,7 +2725,7 @@ begin
nC1 := LeftChar;
if (rcClip.Left > fGutterWidth + 2) then
Inc(nC1, (rcClip.Left - fGutterWidth - 2) div CharWidth);
nC2 := nC1 +
nC2 := {$IFDEF SYN_LAZARUS}LeftChar{$ELSE}nC1{$ENDIF} +
(rcClip.Right - fGutterWidth - 2 + CharWidth - 1) div CharWidth;
// lines
nL1 := Max({$IFDEF SYN_LAZARUS}