Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/GCode/GCodeBuilder.cs')
-rw-r--r--UVtools.Core/GCode/GCodeBuilder.cs4
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);