Browse Source

Seek stream before loading icon (#14830)

* Seek stream before loading icon

* oops
pull/14833/head
Steve 2 years ago
committed by GitHub
parent
commit
0759b3dbde
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/Windows/Avalonia.Win32/Win32Platform.cs

1
src/Windows/Avalonia.Win32/Win32Platform.cs

@ -240,6 +240,7 @@ namespace Avalonia.Win32
using (var memoryStream = new MemoryStream())
{
bitmap.Save(memoryStream);
memoryStream.Seek(0, SeekOrigin.Begin);
return new IconImpl(memoryStream);
}
}

Loading…
Cancel
Save