Fixing null errors in expressions

Changed to requiring = at start of equation
This commit is contained in:
Lars Brubaker 2021-06-02 10:22:13 -07:00
parent 28bd0a1071
commit 3d068ef868
15 changed files with 252 additions and 144 deletions

View file

@ -90,8 +90,8 @@ namespace MatterHackers.Plugins.EditorTools
{
get
{
if (getWidth != null
&& (getWidth() != InitialState.Width || getDepth() != InitialState.Depth))
if ((getWidth != null && getWidth() != InitialState.Width)
|| (getDepth != null && getDepth() != InitialState.Depth))
{
return true;
}
@ -200,7 +200,11 @@ namespace MatterHackers.Plugins.EditorTools
if (getWidth != null)
{
InitialState.Width = getWidth();
InitialState.Depth = getDepth();
}
if (getDepth != null)
{
InitialState.Depth = getDepth.Invoke();
}
if (getHeight != null)