mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 09:29:16 +02:00
synedit: codefolding: fixed show line numbers on folded items
git-svn-id: trunk@9985 -
This commit is contained in:
parent
1d762813f8
commit
65781b3ebf
@ -2929,16 +2929,20 @@ begin
|
||||
for iLine := FirstLine to LastLine do begin
|
||||
// next line rect
|
||||
rcLine.Top := rcLine.Bottom;
|
||||
Inc(rcLine.Bottom, fTextHeight);
|
||||
// erase the background and draw the line number string in one go
|
||||
s := fGutter.FormatLineNumber(iLine);
|
||||
{$IFDEF SYN_LAZARUS}
|
||||
if not TSynEditStringList(fLines).Folded[iLine] then
|
||||
if not TSynEditStringList(fLines).Folded[iLine] then begin
|
||||
Inc(rcLine.Bottom, fTextHeight);
|
||||
if fGutter.ShowCodeFolding then
|
||||
fTextDrawer.ExtTextOut(fGutter.LeftOffset + fGutter.CodeFoldingWidth, rcLine.Top, ETO_OPAQUE,rcLine,PChar(S),Length(S))
|
||||
fTextDrawer.ExtTextOut(fGutter.LeftOffset + fGutter.CodeFoldingWidth,
|
||||
rcLine.Top, ETO_OPAQUE,rcLine,PChar(S),Length(S))
|
||||
else
|
||||
fTextDrawer.ExtTextOut(fGutter.LeftOffset, rcLine.Top, ETO_OPAQUE,rcLine,PChar(S),Length(S));
|
||||
fTextDrawer.ExtTextOut(fGutter.LeftOffset,
|
||||
rcLine.Top, ETO_OPAQUE,rcLine,PChar(S),Length(S));
|
||||
end;
|
||||
{$ELSE}
|
||||
Inc(rcLine.Bottom, fTextHeight);
|
||||
Windows.ExtTextOut(DC, fGutter.LeftOffset, rcLine.Top, ETO_OPAQUE,
|
||||
@rcLine, PChar(s), Length(s), nil);
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user