From df21f25361e57762199398eb253ebcff9e91154a Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Wed, 20 May 2015 12:36:34 -0700 Subject: [PATCH] Fix for incorrect message when creating a gcode file that is too big to load. --- PartPreviewWindow/ViewGcodeBasic.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PartPreviewWindow/ViewGcodeBasic.cs b/PartPreviewWindow/ViewGcodeBasic.cs index 13774c139..62272f2f9 100644 --- a/PartPreviewWindow/ViewGcodeBasic.cs +++ b/PartPreviewWindow/ViewGcodeBasic.cs @@ -865,7 +865,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow if (gcodeViewWidget != null && gcodeViewWidget.LoadedGCode == null) { - if (GCodeFile.FileTooBigToLoad(printItem.FileLocation)) + // If we have finished loading the gcode and the source file exists but we don't have any loaded gcode it is because the loaded decided to not load it. + if (File.Exists(printItem.FileLocation)) { SetProcessingMessage(string.Format(fileTooBigToLoad, printItem.Name)); }