diff --git a/src/Mod/Path/libarea/Adaptive.cpp b/src/Mod/Path/libarea/Adaptive.cpp index 511cdb2f55..48c1abd612 100644 --- a/src/Mod/Path/libarea/Adaptive.cpp +++ b/src/Mod/Path/libarea/Adaptive.cpp @@ -582,7 +582,7 @@ void SmoothPaths(Paths &paths, double stepSize, int pointCount) double dsqr = DistanceSqrd(lastPt, pt); if (dsqr < SAME_POINT_TOL_SQRD_SCALED) { - points.erase(points.end()); + points.pop_back(); points.push_back(pair(i, pt)); continue; } @@ -591,7 +591,7 @@ void SmoothPaths(Paths &paths, double stepSize, int pointCount) if (l < stepSize) { - points.erase(points.end()); + points.pop_back(); points.push_back(pair(i, pt)); continue; } @@ -3070,4 +3070,4 @@ void Adaptive2d::ProcessPolyNode(Paths boundPaths, Paths toolBoundPaths) results.push_back(output); } -} // namespace AdaptivePath \ No newline at end of file +} // namespace AdaptivePath