mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Fix for image editor causing crashes
This commit is contained in:
parent
bfacab21da
commit
fa4ada84bd
7 changed files with 6 additions and 3 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue