Fix for image editor causing crashes

This commit is contained in:
KillzXGaming 2019-04-27 11:59:57 -04:00
parent bfacab21da
commit fa4ada84bd
7 changed files with 6 additions and 3 deletions

Binary file not shown.

View file

@ -686,14 +686,14 @@ namespace Switch_Toolbox.Library.Forms
if (displayVerticalToolStripMenuItem.Checked)
{
DisplayVertical();
Runtime.ImageEditor.DisplayVertical = true;
}
else
{
DisplayHorizontal();
Runtime.ImageEditor.DisplayVertical = false;
}
Runtime.ImageEditor.DisplayVertical = displayVerticalToolStripMenuItem.Checked;
Config.Save();
}
@ -759,7 +759,7 @@ namespace Switch_Toolbox.Library.Forms
private void DisplayVertical()
{
if (splitContainer1.Panel2Collapsed)
if (splitContainer1.Panel2Collapsed || propertiesEditor == null)
return;
var ImagePanel = stPanel1;

View file

@ -306,6 +306,9 @@
<Content Include="Lib\Licenses\SFGraphics COPYRIGHT.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Lib\Licenses\SharpYaml COPYRIGHT.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Lib\Licenses\SmashForge COPYRIGHT.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>