Polygon: fixed polygon filleting glitch for colinear outline segments. (fixes lp:1527827)
This commit is contained in:
parent
7aca6174d6
commit
19c54933c1
|
@ -420,7 +420,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( std::isinf( denom ) )
|
||||
if( !std::isfinite( denom ) )
|
||||
continue;
|
||||
|
||||
// Limit rounding distance to one half of an edge
|
||||
|
|
Loading…
Reference in New Issue