Improve bounding hull error message.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17886
This commit is contained in:
parent
b8ccaae403
commit
651cc5c838
|
@ -421,7 +421,14 @@ int CONVERT_TOOL::CreatePolys( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
if( !getPolys( resolvedSettings ) )
|
if( !getPolys( resolvedSettings ) )
|
||||||
{
|
{
|
||||||
DisplayErrorMessage( m_frame, _( "Could not convert selection" ), _( "Objects must form a closed shape" ) );
|
wxString msg;
|
||||||
|
|
||||||
|
if( resolvedSettings.m_Strategy == BOUNDING_HULL )
|
||||||
|
msg = _( "Resulting polygon would be empty" );
|
||||||
|
else
|
||||||
|
msg = _( "Objects must form a closed shape" );
|
||||||
|
|
||||||
|
DisplayErrorMessage( m_frame, _( "Could not convert selection" ), msg );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue