Polygon: fixed polygon filleting glitch for colinear outline segments. (fixes lp:1527827)

This commit is contained in:
Tomasz Wlostowski 2016-08-05 15:07:42 -04:00 committed by Wayne Stambaugh
parent 7aca6174d6
commit 19c54933c1
1 changed files with 1 additions and 1 deletions

View File

@ -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