Guard for null reference
This commit is contained in:
parent
21fe181589
commit
1e1cf68070
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
viewControls3D.ResetView += (sender, e) =>
|
||||
{
|
||||
if (gcode2DWidget.Visible)
|
||||
if (gcode2DWidget?.Visible == true)
|
||||
{
|
||||
gcode2DWidget.CenterPartInView();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue