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

View file

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