From ddea33d93a972ee639b8f9311277c88bad6438b8 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 13 Dec 2016 19:52:28 +0100 Subject: [PATCH] Fixed compilation of ClipperUtils on GCC, which is more strict than VS2013 compiler. --- xs/src/libslic3r/ClipperUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/src/libslic3r/ClipperUtils.cpp b/xs/src/libslic3r/ClipperUtils.cpp index 69ba3bfa3..4b6eb77ad 100644 --- a/xs/src/libslic3r/ClipperUtils.cpp +++ b/xs/src/libslic3r/ClipperUtils.cpp @@ -463,7 +463,8 @@ ExPolygons _clipper_ex(ClipperLib::ClipType clipType, const Polygons &subject, const Polygons &clip, bool safety_offset_) { - return PolyTreeToExPolygons(_clipper_do(clipType, subject, clip, ClipperLib::pftNonZero, safety_offset_)); + ClipperLib::PolyTree polytree = _clipper_do(clipType, subject, clip, ClipperLib::pftNonZero, safety_offset_); + return PolyTreeToExPolygons(polytree); } Polylines