From a7d2ae0450f227e1547fdf91a0b04d24357c26b8 Mon Sep 17 00:00:00 2001 From: Vovodroid Date: Sun, 25 Aug 2024 07:39:15 +0300 Subject: [PATCH] Fix crash when both Flow compensator and Verbose Gcode are enabled. (#6428) * Fix crash when both Flow compensator and Verbose Gcode are enabled. --- src/libslic3r/GCode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 0fa6bbcbba..1b6335e169 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -5568,6 +5568,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description, size_t start_index = fitting_result[fitting_index].start_point_index; size_t end_index = fitting_result[fitting_index].end_point_index; for (size_t point_index = start_index + 1; point_index < end_index + 1; point_index++) { + tempDescription = description; const Line line = Line(path.polyline.points[point_index - 1], path.polyline.points[point_index]); const double line_length = line.length() * SCALING_FACTOR; if (line_length < EPSILON)