Browse Source

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
newinvert
Seth Hillbrand 2 years ago
parent
commit
88cbbbcdae
  1. 3
      pcbnew/tools/convert_tool.cpp

3
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 )
{

Loading…
Cancel
Save