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:
parent
c0872364d4
commit
5652eaea82
|
@ -311,6 +311,14 @@ wxString NETS_SEARCH_HANDLER::GetResultCell( int aRow, int aCol )
|
||||||
{
|
{
|
||||||
NETINFO_ITEM* net = m_hitlist[aRow];
|
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 )
|
if( aCol == 0 )
|
||||||
return UnescapeString( net->GetNetname() );
|
return UnescapeString( net->GetNetname() );
|
||||||
else if( aCol == 1 )
|
else if( aCol == 1 )
|
||||||
|
|
Loading…
Reference in New Issue