Don't complain about perfectly-closed polygons as self-intersecting
This commit is contained in:
parent
081c77f6bd
commit
b8c282fa6f
|
@ -84,7 +84,8 @@ bool POLYGON_GEOM_MANAGER::IsSelfIntersecting( bool aIncludeLeaderPts ) const
|
||||||
if( aIncludeLeaderPts )
|
if( aIncludeLeaderPts )
|
||||||
{
|
{
|
||||||
for( int i = 0; i < m_leaderPts.PointCount(); ++i )
|
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
|
// line chain needs to be set as closed for proper checks
|
||||||
|
|
Loading…
Reference in New Issue