diff --git a/polygon/PolyLine.cpp b/polygon/PolyLine.cpp index ee819f8b11..d134aafdac 100644 --- a/polygon/PolyLine.cpp +++ b/polygon/PolyLine.cpp @@ -17,6 +17,7 @@ #include #include + CPolyLine::CPolyLine() { m_hatchStyle = NO_HATCH; @@ -449,7 +450,7 @@ CPolyLine* CPolyLine::Fillet( unsigned int aRadius, unsigned int aSegments ) double denom = sqrt( 2.0 / ( 1 + cosine ) - 1 ); // Do nothing in case of parallel edges - if( isinf( denom ) ) + if( std::isinf( denom ) ) continue; // Limit rounding distance to one half of an edge