Don't complain about perfectly-closed polygons as self-intersecting

This commit is contained in:
Jon Evans 2018-03-29 22:20:00 -04:00
parent 081c77f6bd
commit b8c282fa6f
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ bool POLYGON_GEOM_MANAGER::IsSelfIntersecting( bool aIncludeLeaderPts ) const
if( aIncludeLeaderPts )
{
for( int i = 0; i < m_leaderPts.PointCount(); ++i )
pts.Append( m_leaderPts.CPoint( i ) );
if( m_leaderPts.CPoint( i ) != pts.CPoint( 0 ) )
pts.Append( m_leaderPts.CPoint( i ) );
}
// line chain needs to be set as closed for proper checks