Search Pane: name net 0 as "No Net" with no class

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13148
This commit is contained in:
Mike Williams 2022-12-13 15:50:59 -05:00
parent c0872364d4
commit 5652eaea82
1 changed files with 8 additions and 0 deletions

View File

@ -311,6 +311,14 @@ wxString NETS_SEARCH_HANDLER::GetResultCell( int aRow, int aCol )
{
NETINFO_ITEM* net = m_hitlist[aRow];
if( net->GetNetCode() == 0 )
{
if( aCol == 0 )
return wxT( "No Net" );
else if( aCol == 1 )
return wxT( "" );
}
if( aCol == 0 )
return UnescapeString( net->GetNetname() );
else if( aCol == 1 )