From c23c0ee7d2369913f2f2f97008e003b7f0307a0a Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 6 Mar 2017 15:03:31 +0100 Subject: [PATCH] Fix of https://github.com/prusa3d/Slic3r/issues/172 ? --- xs/src/clipper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/clipper.cpp b/xs/src/clipper.cpp index 7a7aef4e84..fada7a289f 100644 --- a/xs/src/clipper.cpp +++ b/xs/src/clipper.cpp @@ -2657,7 +2657,7 @@ bool Clipper::FixupIntersectionOrder() //Now it's crucial that intersections are made only between adjacent edges, //so to ensure this the order of intersections may need adjusting ... CopyAELToSEL(); - std::sort(m_IntersectList.begin(), m_IntersectList.end(), [](IntersectNode &node1, IntersectNode &node2) { return node2.Pt.Y < node1.Pt.Y; }); + std::sort(m_IntersectList.begin(), m_IntersectList.end(), [](const IntersectNode &node1, const IntersectNode &node2) { return node2.Pt.Y < node1.Pt.Y; }); size_t cnt = m_IntersectList.size(); for (size_t i = 0; i < cnt; ++i)