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; }