grid: fixes cell font properties if it was changed in OnPrepareCanvas

git-svn-id: trunk@9700 -
This commit is contained in:
jesus 2006-08-04 05:37:48 +00:00
parent e573a70ddb
commit e2fb8b2131

View File

@ -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;