ArcWelder: Fixing out-of-vector access.

This commit is contained in:
Vojtech Bubnik 2023-08-29 16:53:33 +02:00
parent e0baccd654
commit 2f94681dd2

View File

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