mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +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
|
||||
//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;
|
||||
|
Loading…
Reference in New Issue
Block a user