Explorar o código

* Setting empty should also work.

Michaël Van Canneyt %!s(int64=2) %!d(string=hai) anos
pai
achega
930e49590c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/fcl-image/src/freetype.pp

+ 3 - 1
packages/fcl-image/src/freetype.pp

@@ -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