mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Don't determine file without extension as image file
This commit is contained in:
parent
5a477f41d0
commit
1b53ab2ace
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ begin
|
|||
sExtFilter := UTF8LowerCase(ExtractFileExt(sFileName)) + ';';
|
||||
sGraphicFilter := GraphicFilter(TGraphic);
|
||||
// if file is graphic
|
||||
if (Pos(sExtFilter, sGraphicFilter) <> 0) and mbFileExists(sFileName) then
|
||||
if (Length(sExtFilter) > 1) and (Pos(sExtFilter, sGraphicFilter) <> 0) and mbFileExists(sFileName) then
|
||||
begin
|
||||
{$IFDEF LCLGTK2}
|
||||
pbPicture := gdk_pixbuf_new_from_file(PChar(sFileName), nil);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue