Browse Source
Seek stream before loading icon (#14830)
* Seek stream before loading icon
* oops
pull/14833/head
Steve
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
src/Windows/Avalonia.Win32/Win32Platform.cs
|
|
@ -240,6 +240,7 @@ namespace Avalonia.Win32 |
|
|
using (var memoryStream = new MemoryStream()) |
|
|
using (var memoryStream = new MemoryStream()) |
|
|
{ |
|
|
{ |
|
|
bitmap.Save(memoryStream); |
|
|
bitmap.Save(memoryStream); |
|
|
|
|
|
memoryStream.Seek(0, SeekOrigin.Begin); |
|
|
return new IconImpl(memoryStream); |
|
|
return new IconImpl(memoryStream); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|