Skip to content

Commit

Permalink
Added a missing locale switch needed for custom gcode validation when…
Browse files Browse the repository at this point in the history
… switching tabs
  • Loading branch information
lukasmatena committed Jul 12, 2021
1 parent 454b876 commit dca6db8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libslic3r/GCode/GCodeProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,8 @@ bool GCodeProcessor::contains_reserved_tags(const std::string& gcode, unsigned i

bool ret = false;

CNumericLocalesSetter locales_setter;

GCodeReader parser;
parser.parse_buffer(gcode, [&ret, &found_tag, max_count](GCodeReader& parser, const GCodeReader::GCodeLine& line) {
std::string comment = line.raw();
Expand Down

0 comments on commit dca6db8

Please sign in to comment.