LCL: Use font name 'default' if it was empty. Issue #33809.

git-svn-id: trunk@61344 -
This commit is contained in:
juha 2019-06-09 08:30:59 +00:00
parent 436ce8ff84
commit 8438d57672

View File

@ -1241,6 +1241,10 @@ var
begin
//debugln(['TCanvas.TextRect ',DbgSName(Self),' Text="',Text,'" ',dbgs(ARect),' X=',X,',Y=',Y]);
if Font.Name = '' then // Empty name is allowed in Delphi.
Font.Name := 'default';
Changing;
Options := 0;