Explorar el Código

* Setting empty should also work.

Michaël Van Canneyt hace 2 años
padre
commit
930e49590c
Se han modificado 1 ficheros con 3 adiciones y 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