Boolean logic fix to help with #396, this at least should solve the issue for .PNG, other formats are pending. [skip ci]

This commit is contained in:
Robin Krom 2022-03-28 16:00:51 +02:00
commit 83b308cb4b
No known key found for this signature in database
GPG key ID: BCC01364F1371490

View file

@ -815,7 +815,7 @@ EndSelection:<<<<<<<4
var fileFormatHandlers = SimpleServiceProvider.Current.GetAllInstances<IFileFormatHandler>();
// From here, imageStream is a valid stream
if (!fileFormatHandlers.TryLoadFromStream(imageStream, format, out bitmap))
if (fileFormatHandlers.TryLoadFromStream(imageStream, format, out bitmap))
{
return bitmap;
}