Subtract out unconnected net when reporting number of nets.
Fixes: lp:1792235 * https://bugs.launchpad.net/kicad/+bug/1792235
This commit is contained in:
parent
cf2980e1b2
commit
4854d92c73
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue