Update to 6.4.1.

This commit is contained in:
Lukáš Hejl 2024-03-26 15:21:20 +01:00 committed by Lukas Matena
parent fa34a51712
commit 2feea1124e
2 changed files with 8 additions and 7 deletions

View File

@ -1,10 +1,10 @@
/*******************************************************************************
* *
* Author : Angus Johnson *
* Version : 6.4.0 *
* Date : 2 July 2015 *
* Version : 6.4.1 *
* Date : 5 December 2016 *
* Website : http://www.angusj.com *
* Copyright : Angus Johnson 2010-2015 *
* Copyright : Angus Johnson 2010-2016 *
* *
* License: *
* Use, modification & distribution is subject to Boost Software License Ver 1. *
@ -3243,7 +3243,7 @@ void Clipper::FixupFirstLefts3(OutRec* OldOutRec, OutRec* NewOutRec)
for (OutRec &outRec : m_PolyOuts)
{
OutRec* firstLeft = ParseFirstLeft(outRec.FirstLeft);
if (outRec.Pts && outRec.FirstLeft == OldOutRec)
if (outRec.Pts && firstLeft == OldOutRec)
outRec.FirstLeft = NewOutRec;
}
}
@ -4014,6 +4014,7 @@ void CleanPolygon(Path& poly, double distance)
void CleanPolygons(const Paths& in_polys, Paths& out_polys, double distance)
{
out_polys.resize(in_polys.size());
for (Paths::size_type i = 0; i < in_polys.size(); ++i)
CleanPolygon(in_polys[i], out_polys[i], distance);
}

View File

@ -1,8 +1,8 @@
/*******************************************************************************
* *
* Author : Angus Johnson *
* Version : 6.4.0 *
* Date : 2 July 2015 *
* Version : 6.4.1 *
* Date : 5 December 2016 *
* Website : http://www.angusj.com *
* Copyright : Angus Johnson 2010-2015 *
* *
@ -144,7 +144,7 @@ typedef std::vector<PolyNode*, Allocator<PolyNode*>> PolyNodes;
class PolyNode
{
public:
PolyNode() : Childs(), Parent(0), Index(0), m_IsOpen(false) {}
PolyNode() : Parent(0), Index(0), m_IsOpen(false) {}
virtual ~PolyNode(){};
Path Contour;
PolyNodes Childs;