Parcourir la source

* Small fix by Alexey Torgashin. Fixes issue #40335

Michaël Van Canneyt il y a 2 ans
Parent
commit
9cc08940dd
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  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;