From 3aca0e185342659fe53c8963214d981b13a7edfe Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 26 Dec 2020 23:00:41 +0000 Subject: [PATCH] Make sure we nofity of self-intersecting outlines. --- pcbnew/convert_drawsegment_list_to_polygon.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/convert_drawsegment_list_to_polygon.cpp b/pcbnew/convert_drawsegment_list_to_polygon.cpp index 64bf79efe5..18f44216e8 100644 --- a/pcbnew/convert_drawsegment_list_to_polygon.cpp +++ b/pcbnew/convert_drawsegment_list_to_polygon.cpp @@ -574,6 +574,9 @@ bool ConvertOutlineToPolygon( std::vector& 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& 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; }