mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Fix Graphic Picker nullreference bug
This commit is contained in:
parent
7dcde1c752
commit
cd30c8a9ff
1 changed files with 6 additions and 3 deletions
|
@ -46,10 +46,13 @@ namespace ShiftOS.WinForms.Applications
|
|||
InitializeComponent();
|
||||
SelectedLayout = layout;
|
||||
Image = old;
|
||||
using(var ms = new System.IO.MemoryStream())
|
||||
if (Image != null)
|
||||
{
|
||||
Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
|
||||
ImageAsBinary = ms.ToArray();
|
||||
using (var ms = new System.IO.MemoryStream())
|
||||
{
|
||||
Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
|
||||
ImageAsBinary = ms.ToArray();
|
||||
}
|
||||
}
|
||||
Callback = cb;
|
||||
lblobjecttoskin.Text = name;
|
||||
|
|
Loading…
Reference in a new issue