mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 23:19:28 +02:00
LCL, grids, fixes incomplete border drawing when flat=true
git-svn-id: trunk@11889 -
This commit is contained in:
parent
a032f88b32
commit
ee74499bcf
@ -2868,11 +2868,7 @@ var
|
||||
R: TRect;
|
||||
begin
|
||||
if InternalNeedBorder then begin
|
||||
{$ifdef sbars}
|
||||
R := Rect(0,0,Width-1,Height-1);
|
||||
{$else}
|
||||
R := Rect(0,0,FGCache.ClientWidth, FGCache.Clientheight);
|
||||
{$endif}
|
||||
R := Rect(0,0,ClientWidth-1, Clientheight-1);
|
||||
with R, Canvas do begin
|
||||
Pen.Color := fBorderColor;
|
||||
Pen.Width := 1;
|
||||
@ -2881,7 +2877,6 @@ begin
|
||||
LineTo(Right, Bottom);
|
||||
LineTo(Right, 0);
|
||||
LineTo(0,0);
|
||||
Pixels[Right, Bottom] := fBorderColor; // workaround
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user