Added a missing locale switch needed for custom gcode validation when switching tabs

This commit is contained in:
Lukas Matena 2021-07-12 09:38:32 +02:00
parent 454b876420
commit dca6db8635

View file

@ -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();