mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
BUG-2111: The where clause selecting the possible images didn't work correctly.
This commit is contained in:
parent
b01eae3794
commit
c4139f4fe2
1 changed files with 3 additions and 3 deletions
|
@ -813,10 +813,10 @@ EndSelection:<<<<<<<4
|
|||
string[] dropFileNames = (string[]) dataObject.GetData(DataFormats.FileDrop);
|
||||
if (dropFileNames != null && dropFileNames.Length > 0)
|
||||
{
|
||||
return dropFileNames.Where(filename => !string.IsNullOrEmpty(filename))
|
||||
return dropFileNames
|
||||
.Where(filename => !string.IsNullOrEmpty(filename))
|
||||
.Where(Path.HasExtension)
|
||||
.Select(filename => Path.GetExtension(filename).ToLowerInvariant())
|
||||
.Where(ext => ImageHelper.StreamConverters.Keys.Contains(ext));
|
||||
.Where(filename => ImageHelper.StreamConverters.Keys.Contains(Path.GetExtension(filename).ToLowerInvariant().Substring(1)));
|
||||
}
|
||||
return Enumerable.Empty<string>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue