Fixing null errors in expressions
Changed to requiring = at start of equation
This commit is contained in:
parent
28bd0a1071
commit
3d068ef868
15 changed files with 252 additions and 144 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue