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,6 +84,7 @@ bool POLYGON_GEOM_MANAGER::IsSelfIntersecting( bool aIncludeLeaderPts ) const
if( aIncludeLeaderPts )
{
for( int i = 0; i < m_leaderPts.PointCount(); ++i )
if( m_leaderPts.CPoint( i ) != pts.CPoint( 0 ) )
pts.Append( m_leaderPts.CPoint( i ) );
}