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

@ -327,8 +327,8 @@ namespace MatterHackers.Plugins.EditorTools
{
if (hadClickOnControl)
{
if (getWidth() != scaleController.InitialState.Width
|| getDepth() != scaleController.InitialState.Depth)
if ((getWidth != null && getWidth() != scaleController.InitialState.Width)
|| (getDepth != null && getDepth() != scaleController.InitialState.Depth))
{
scaleController.EditComplete();
}