diff options
Diffstat (limited to 'UVtools.Core/GCode/GCodeBuilder.cs')
-rw-r--r-- | UVtools.Core/GCode/GCodeBuilder.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.Core/GCode/GCodeBuilder.cs b/UVtools.Core/GCode/GCodeBuilder.cs index 33b5cc0..211832d 100644 --- a/UVtools.Core/GCode/GCodeBuilder.cs +++ b/UVtools.Core/GCode/GCodeBuilder.cs @@ -450,11 +450,11 @@ namespace UVtools.Core.GCode public void RebuildGCode(FileFormat slicerFile, StringBuilder header) => RebuildGCode(slicerFile, header?.ToString()); public void RebuildGCode(FileFormat slicerFile, string header = null) { - if (slicerFile.LayerCount == 0) return; Clear(); - AppendUVtools(); + if (slicerFile.LayerCount == 0) return; + if (!string.IsNullOrWhiteSpace(header)) { Append(header); |