Fixed compilation of ClipperUtils on GCC, which is more strict

than VS2013 compiler.
This commit is contained in:
bubnikv 2016-12-13 19:52:28 +01:00
parent e64dcf5e59
commit ddea33d93a

View file

@ -463,7 +463,8 @@ ExPolygons
_clipper_ex(ClipperLib::ClipType clipType, const Polygons &subject, _clipper_ex(ClipperLib::ClipType clipType, const Polygons &subject,
const Polygons &clip, bool safety_offset_) const Polygons &clip, bool safety_offset_)
{ {
return PolyTreeToExPolygons(_clipper_do<ClipperLib::PolyTree>(clipType, subject, clip, ClipperLib::pftNonZero, safety_offset_)); ClipperLib::PolyTree polytree = _clipper_do<ClipperLib::PolyTree>(clipType, subject, clip, ClipperLib::pftNonZero, safety_offset_);
return PolyTreeToExPolygons(polytree);
} }
Polylines Polylines