mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:56:02 +08:00
ArcWelder: Fixing out-of-vector access.
This commit is contained in:
parent
e0baccd654
commit
2f94681dd2
@ -457,7 +457,7 @@ double clip_start(Path &path, const double len)
|
||||
double clip_end(Path &path, double distance)
|
||||
{
|
||||
while (distance > 0) {
|
||||
Segment &last = path.back();
|
||||
const Segment last = path.back();
|
||||
path.pop_back();
|
||||
if (path.empty())
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user