Subtract out unconnected net when reporting number of nets.

Fixes: lp:1792235
* https://bugs.launchpad.net/kicad/+bug/1792235
This commit is contained in:
Jeff Young 2018-09-15 00:52:48 +01:00
parent cf2980e1b2
commit 4854d92c73
1 changed files with 2 additions and 1 deletions

View File

@ -1214,7 +1214,8 @@ void BOARD::GetMsgPanelInfo( EDA_UNITS_T aUnits, std::vector< MSG_PANEL_ITEM >&
txt.Printf( wxT( "%d" ), GetNodesCount() );
aList.push_back( MSG_PANEL_ITEM( _( "Nodes" ), txt, DARKCYAN ) );
txt.Printf( wxT( "%d" ), m_NetInfo.GetNetCount() );
// Subtract out the unconnected net before reporting number of nets
txt.Printf( wxT( "%d" ), m_NetInfo.GetNetCount() - 1 );
aList.push_back( MSG_PANEL_ITEM( _( "Nets" ), txt, RED ) );
txt.Printf( wxT( "%d" ), GetConnectivity()->GetUnconnectedCount() );