Explorar o código

* Small fix by Alexey Torgashin. Fixes issue #40335

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

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

@@ -400,9 +400,7 @@ begin
     if AValue[1] <> '.' then
       FExtention := '.' + AValue
     else
-      FExtention := AValue
-  else
-    AValue := '';
+      FExtention := AValue;
 end;
 
 function TFontManager.SearchFont (afilename:string; doraise : boolean = true) : string;