mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 13:45:57 +08:00
Fixed crash in GCodeProcessor::post_process() when backtracing into gcode generated by XL printer
This commit is contained in:
parent
16b7175081
commit
9c801d736a
@ -3615,7 +3615,8 @@ void GCodeProcessor::post_process()
|
|||||||
while (rev_it != m_lines.rend() && rev_it->time > time_threshold_i && curr_cmd != cmd && curr_cmd != "G28" && curr_cmd != "G29") {
|
while (rev_it != m_lines.rend() && rev_it->time > time_threshold_i && curr_cmd != cmd && curr_cmd != "G28" && curr_cmd != "G29") {
|
||||||
rev_it->line = line_replacer(rev_it->line);
|
rev_it->line = line_replacer(rev_it->line);
|
||||||
++rev_it;
|
++rev_it;
|
||||||
curr_cmd = GCodeReader::GCodeLine::extract_cmd(rev_it->line);
|
if (rev_it != m_lines.rend())
|
||||||
|
curr_cmd = GCodeReader::GCodeLine::extract_cmd(rev_it->line);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we met the previous evenience of cmd, or a G28/G29 command. stop inserting lines
|
// we met the previous evenience of cmd, or a G28/G29 command. stop inserting lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user