Fixed a bug with changing to a null print item in gcode view

This commit is contained in:
Lars Brubaker 2017-03-21 10:02:56 -07:00
parent 89664a011d
commit 78f554ce20
2 changed files with 17 additions and 0 deletions

View file

@ -171,6 +171,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
gcodeDisplayWidget.CloseAllChildren();
if(printItem == null)
{
return;
}
//firstProcessingMessage = "Loading G-Code...".Localize();
if (Path.GetExtension(printItem.FileLocation).ToUpper() == ".GCODE")
{