Improve bounding hull error message.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17886
This commit is contained in:
Jeff Young 2024-05-03 17:58:03 +01:00
parent b8ccaae403
commit 651cc5c838
1 changed files with 8 additions and 1 deletions

View File

@ -421,7 +421,14 @@ int CONVERT_TOOL::CreatePolys( const TOOL_EVENT& aEvent )
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;
}