Fix for crash on windows env.

This commit is contained in:
kreso-t
2018-09-26 12:35:10 +02:00
committed by wmayer
parent e6abbef296
commit cdbb902ae8

View File

@@ -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<size_t /*path index*/, IntPoint>(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<size_t /*path index*/, IntPoint>(i, pt));
continue;
}
@@ -3070,4 +3070,4 @@ void Adaptive2d::ProcessPolyNode(Paths boundPaths, Paths toolBoundPaths)
results.push_back(output);
}
} // namespace AdaptivePath
} // namespace AdaptivePath