Fix MinGW build issue for missing isinf() in PolyLine.cpp.
This commit is contained in:
parent
7e1aef2200
commit
2afe1eab7a
|
@ -17,6 +17,7 @@
|
||||||
#include <math_for_graphics.h>
|
#include <math_for_graphics.h>
|
||||||
#include <polygon_test_point_inside.h>
|
#include <polygon_test_point_inside.h>
|
||||||
|
|
||||||
|
|
||||||
CPolyLine::CPolyLine()
|
CPolyLine::CPolyLine()
|
||||||
{
|
{
|
||||||
m_hatchStyle = NO_HATCH;
|
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 );
|
double denom = sqrt( 2.0 / ( 1 + cosine ) - 1 );
|
||||||
|
|
||||||
// Do nothing in case of parallel edges
|
// Do nothing in case of parallel edges
|
||||||
if( isinf( denom ) )
|
if( std::isinf( denom ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Limit rounding distance to one half of an edge
|
// Limit rounding distance to one half of an edge
|
||||||
|
|
Loading…
Reference in New Issue