mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 17:37:59 +01:00
grid: fixes cell font properties if it was changed in OnPrepareCanvas
git-svn-id: trunk@9700 -
This commit is contained in:
parent
e573a70ddb
commit
e2fb8b2131
@ -2634,7 +2634,9 @@ end;
|
||||
|
||||
procedure TCustomGrid.SetCanvasFont(aFont: TFont);
|
||||
begin
|
||||
if aFont<>FLastFont then begin
|
||||
if (aFont<>FLastFont) or
|
||||
not Canvas.Font.IsEqual(aFont) then
|
||||
begin
|
||||
Canvas.Font := aFont;
|
||||
FLastFont := AFont;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user