Browse Source

* Small fix by Alexey Torgashin. Fixes issue #40335

Michaël Van Canneyt 2 years ago
parent
commit
9cc08940dd
1 changed files with 1 additions and 3 deletions
  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;