diff --git a/pcbnew/widgets/search_handlers.cpp b/pcbnew/widgets/search_handlers.cpp index d28658c7d1..3a04afe2a2 100644 --- a/pcbnew/widgets/search_handlers.cpp +++ b/pcbnew/widgets/search_handlers.cpp @@ -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 )