Make sure we nofity of self-intersecting outlines.

This commit is contained in:
Jeff Young 2020-12-26 23:00:41 +00:00
parent 5ea88c897a
commit 3aca0e1853
1 changed files with 6 additions and 0 deletions

View File

@ -574,6 +574,9 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
}
else if( nextGraphic ) // encountered already-used segment, but not at the start
{
if( aErrorHandler )
(*aErrorHandler)( _( "(self-intersecting)" ), graphic, nextGraphic, prevPt );
polygonComplete = false;
break;
}
@ -816,6 +819,9 @@ bool ConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aSegList, SHAPE_POLY_SET&
}
else if( nextGraphic ) // encountered already-used segment, but not at the start
{
if( aErrorHandler )
(*aErrorHandler)( _( "(self-intersecting)" ), graphic, nextGraphic, prevPt );
polygonComplete = false;
break;
}