From b8c282fa6f070a09d98939ea10cca62d15ad7e35 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 29 Mar 2018 22:20:00 -0400 Subject: [PATCH] Don't complain about perfectly-closed polygons as self-intersecting --- common/preview_items/polygon_geom_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/preview_items/polygon_geom_manager.cpp b/common/preview_items/polygon_geom_manager.cpp index 379f535426..af54ba08d2 100644 --- a/common/preview_items/polygon_geom_manager.cpp +++ b/common/preview_items/polygon_geom_manager.cpp @@ -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