mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 16:39:03 +08:00
Fixed method ExportLines::update() to avoid potential deferencing of invalid iterator
This commit is contained in:
parent
c1e145b86c
commit
c8468839da
@ -3566,7 +3566,7 @@ void GCodeProcessor::post_process()
|
||||
++m_curr_g1_id;
|
||||
}
|
||||
|
||||
if (it != init_it || m_curr_g1_id == 0)
|
||||
if ((it != m_machine.g1_times_cache.end() && it != init_it) || m_curr_g1_id == 0)
|
||||
m_time = it->elapsed_time;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user