From 88cbbbcdaefefb357e2d7fec6ed05f3091b54bbc Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 20 Sep 2023 13:41:49 -0700 Subject: [PATCH] Add error message when we cannot form a polygon Explains to the user why the polygon creation failed Fixes https://gitlab.com/kicad/code/kicad/-/issues/15704 --- pcbnew/tools/convert_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/convert_tool.cpp b/pcbnew/tools/convert_tool.cpp index 6a48f3eb12..78ebc6d3ba 100644 --- a/pcbnew/tools/convert_tool.cpp +++ b/pcbnew/tools/convert_tool.cpp @@ -394,7 +394,10 @@ int CONVERT_TOOL::CreatePolys( const TOOL_EVENT& aEvent ) } if( !getPolys( resolvedSettings ) ) + { + DisplayErrorMessage( m_frame, _( "Could not convert selection" ), _( "Objects must form a closed shape" ) ); return 0; + } for( const SHAPE_POLY_SET& poly : polys ) {