From 4b4d1c2f2a208d9647f17d2dcc5bf9f53d74f33f Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 19 Jan 2022 12:08:00 +0100 Subject: [PATCH] #7773 - Fixed GCodeReader::parse_line_internal() to skip whitespaces between axis digit and axis value --- src/libslic3r/GCodeReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCodeReader.cpp b/src/libslic3r/GCodeReader.cpp index aa04e69f2..0fd09d920 100644 --- a/src/libslic3r/GCodeReader.cpp +++ b/src/libslic3r/GCodeReader.cpp @@ -74,7 +74,7 @@ const char* GCodeReader::parse_line_internal(const char *ptr, const char *end, G if (axis != NUM_AXES_WITH_UNKNOWN) { // Try to parse the numeric value. double v; - auto [pend, ec] = fast_float::from_chars(++ c, end, v); + auto [pend, ec] = fast_float::from_chars(c, end, v); if (pend != c && is_end_of_word(*pend)) { // The axis value has been parsed correctly. if (axis != UNKNOWN_AXIS)