LCL: Trim spaces in TPicture.FindGraphicClassWithFileExt. issue #23224

git-svn-id: trunk@39170 -
This commit is contained in:
juha 2012-10-27 16:15:25 +00:00
parent b8b76ba108
commit b4b5258a4a

View File

@ -700,7 +700,7 @@ function TPicture.FindGraphicClassWithFileExt(const Ext: string;
var
FileExt: String;
begin
FileExt := Ext;
FileExt := Trim(Ext);
if (FileExt <> '') and (FileExt[1] = '.') then
FileExt := Copy(FileExt, 2, length(FileExt));
Result := GetPicFileFormats.FindExt(FileExt);