diff --git a/src/slic3r/GUI/MeshUtils.cpp b/src/slic3r/GUI/MeshUtils.cpp index 85e34c503e..26f3e1ed6b 100644 --- a/src/slic3r/GUI/MeshUtils.cpp +++ b/src/slic3r/GUI/MeshUtils.cpp @@ -179,7 +179,7 @@ std::vector MeshClipper::point_per_contour() const { return out; } assert(m_result); - for (auto isl : m_result->cut_islands) { + for (const auto& isl : m_result->cut_islands) { assert(isl.expoly.contour.size() > 2); // Now return a point lying inside the contour but not in a hole. // We do this by taking a point lying close to the edge, repeating