synedit codefolding: fixed first line number of folded block

git-svn-id: trunk@9994 -
This commit is contained in:
mattias 2006-09-27 18:02:52 +00:00
parent af761c503e
commit 037fd36454

View File

@ -2982,7 +2982,7 @@ begin
rcLine.Top := rcLine.Bottom;
// erase the background and draw the line number string in one go
{$IFDEF SYN_LAZARUS}
if not TSynEditStringList(fLines).Folded[iLine] then begin
if not TSynEditStringList(fLines).Folded[iLine-1] then begin
s := fGutter.FormatLineNumber(iLine);
Inc(rcLine.Bottom, fTextHeight);
fTextDrawer.ExtTextOut(CodeFoldOffset+fGutter.LeftOffset,