diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 6a53917de..fb6dee37b 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -174,7 +174,7 @@ namespace Slic3r { gcode += ";" + GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Wipe_Start) + "\n"; auto end = this->path.points.end(); bool done = false; - for (; it != end; ++ it) { + for (; it != end && ! done; ++ it) { p = gcodegen.point_to_gcode_quantized(*it); double segment_length = (p - prev).norm(); double dE = GCodeFormatter::quantize_e(xy_to_e * segment_length);