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
This commit is contained in:
Seth Hillbrand 2023-09-20 13:41:49 -07:00
parent 0cf09fe374
commit 88cbbbcdae
1 changed files with 3 additions and 0 deletions

View File

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