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:
parent
0cf09fe374
commit
88cbbbcdae
|
@ -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…
Reference in New Issue