mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 00:19:26 +02:00
LCL: Use font name 'default' if it was empty. Issue #33809.
git-svn-id: trunk@61344 -
This commit is contained in:
parent
436ce8ff84
commit
8438d57672
@ -1241,6 +1241,10 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
//debugln(['TCanvas.TextRect ',DbgSName(Self),' Text="',Text,'" ',dbgs(ARect),' X=',X,',Y=',Y]);
|
//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;
|
Changing;
|
||||||
|
|
||||||
Options := 0;
|
Options := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user