Muting Coverity report.

This commit is contained in:
Maciej Suminski
2015-07-07 18:37:03 +02:00
parent 4661e39e08
commit f2785d35bf
4 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -420,12 +420,13 @@ void SHAPE_POLY_SET::fractureSingle( ClipperLib::Paths& paths )
while( num_unconnected > 0 )
{
int64_t x_min = std::numeric_limits<int64_t>::max();
FractureEdge* smallestX;
FractureEdge* smallestX = NULL;
// find the left-most hole edge and merge with the outline
for( FractureEdgeSet::iterator i = border_edges.begin(); i != border_edges.end(); ++i )
{
int64_t xt = (*i)->m_p1.X;
if( ( xt < x_min ) && ! (*i)->m_connected )
{
x_min = xt;