From 2afe1eab7a5a0bca51b0449453ebc4c7a9ac61e5 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Fri, 16 Aug 2013 10:25:34 -0400 Subject: [PATCH] Fix MinGW build issue for missing isinf() in PolyLine.cpp. --- polygon/PolyLine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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