mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 12:59:00 +02:00
LCL: Trim spaces in TPicture.FindGraphicClassWithFileExt. issue #23224
git-svn-id: trunk@39170 -
This commit is contained in:
parent
b8b76ba108
commit
b4b5258a4a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user