From cdbb902ae8295b82d85d18303808275fa997ded7 Mon Sep 17 00:00:00 2001 From: kreso-t Date: Wed, 26 Sep 2018 12:35:10 +0200 Subject: [PATCH] Fix for crash on windows env. --- src/Mod/Path/libarea/Adaptive.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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