Path: Adaptive -fix

This commit is contained in:
kreso-t
2018-09-07 18:27:29 +02:00
committed by wmayer
parent 8edd584b68
commit 640d3fa39b

View File

@@ -2107,8 +2107,10 @@ namespace AdaptivePath {
clip.AddPaths(toolCoverPoly,PolyType::ptClip,true);
clip.Execute(ClipType::ctUnion,cleared);
CleanPolygons(cleared);
lastPoint.X = finCleaned.back().X;
lastPoint.Y = finCleaned.back().Y;
if(!finCleaned.empty()) {
lastPoint.X = finCleaned.back().X;
lastPoint.Y = finCleaned.back().Y;
}
} else {
cerr << "UNABLE TO ADD FINISHING PASS! Please try increasing accuracy." << endl;
break;