Ver código fonte

* Setting empty should also work.

Michaël Van Canneyt 2 anos atrás
pai
commit
930e49590c
1 arquivos alterados com 3 adições e 1 exclusões
  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