* Setting empty should also work.

This commit is contained in:
Michaël Van Canneyt 2023-07-01 11:21:49 +02:00
parent 45d00abddc
commit 930e49590c

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