mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 18:39:09 +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
|
var
|
||||||
FileExt: String;
|
FileExt: String;
|
||||||
begin
|
begin
|
||||||
FileExt := Ext;
|
FileExt := Trim(Ext);
|
||||||
if (FileExt <> '') and (FileExt[1] = '.') then
|
if (FileExt <> '') and (FileExt[1] = '.') then
|
||||||
FileExt := Copy(FileExt, 2, length(FileExt));
|
FileExt := Copy(FileExt, 2, length(FileExt));
|
||||||
Result := GetPicFileFormats.FindExt(FileExt);
|
Result := GetPicFileFormats.FindExt(FileExt);
|
||||||
|
Loading…
Reference in New Issue
Block a user