diff options
Diffstat (limited to 'ArcWelder/segmented_shape.cpp')
-rw-r--r-- | ArcWelder/segmented_shape.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ArcWelder/segmented_shape.cpp b/ArcWelder/segmented_shape.cpp index 1964526..2a7d9b7 100644 --- a/ArcWelder/segmented_shape.cpp +++ b/ArcWelder/segmented_shape.cpp @@ -305,12 +305,11 @@ bool circle::is_over_deviation(const array_list<printer_point>& points, const do double z_step_per_distance = 0; // shared point to test point point_to_test; - point current_point; int max_index = points.count() - 1; // Skip the first and last points since they will fit perfectly. for (int index = 0; index < max_index; index++) { - current_point = points[index]; + point current_point(points[index]); if (index != 0) { // Make sure the length from the center of our circle to the test point is |