mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 12:47:50 -06:00
Added a missing locale switch needed for custom gcode validation when switching tabs
This commit is contained in:
parent
454b876420
commit
dca6db8635
1 changed files with 2 additions and 0 deletions
|
@ -857,6 +857,8 @@ bool GCodeProcessor::contains_reserved_tags(const std::string& gcode, unsigned i
|
||||||
|
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
|
CNumericLocalesSetter locales_setter;
|
||||||
|
|
||||||
GCodeReader parser;
|
GCodeReader parser;
|
||||||
parser.parse_buffer(gcode, [&ret, &found_tag, max_count](GCodeReader& parser, const GCodeReader::GCodeLine& line) {
|
parser.parse_buffer(gcode, [&ret, &found_tag, max_count](GCodeReader& parser, const GCodeReader::GCodeLine& line) {
|
||||||
std::string comment = line.raw();
|
std::string comment = line.raw();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue