mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 14:30:26 +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)
|
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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue