* Setting empty should also work.

(cherry picked from commit 930e49590c)
This commit is contained in:
Michaël Van Canneyt 2023-07-01 11:21:49 +02:00 committed by marcoonthegit
parent 8095aa6ac4
commit 952b831580

View File

@ -399,7 +399,9 @@ end;
procedure TFontManager.SetExtension (AValue : string);
begin
if AValue <> '' then
if AValue = '' then
FExtension:=''
else
if AValue[1] <> '.' then
FExtension := '.' + AValue
else