mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-15 10:43:15 +02:00
Comments.
This commit is contained in:
parent
5c17ff0595
commit
83d07dc7f7
@ -45,8 +45,7 @@ bool BOARD_CONNECTED_ITEM::SetNetCode( int aNetCode, bool aNoAssert )
|
|||||||
if( !IsOnCopperLayer() )
|
if( !IsOnCopperLayer() )
|
||||||
aNetCode = 0;
|
aNetCode = 0;
|
||||||
|
|
||||||
// if aNetCode < 0 ( typically NETINFO_LIST::FORCE_ORPHANED )
|
// if aNetCode < 0 (typically NETINFO_LIST::FORCE_ORPHANED) or no parent board,
|
||||||
// or no parent board,
|
|
||||||
// set the m_netinfo to the dummy NETINFO_LIST::ORPHANED
|
// set the m_netinfo to the dummy NETINFO_LIST::ORPHANED
|
||||||
|
|
||||||
BOARD* board = GetBoard();
|
BOARD* board = GetBoard();
|
||||||
@ -63,7 +62,10 @@ bool BOARD_CONNECTED_ITEM::SetNetCode( int aNetCode, bool aNoAssert )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// This method returns the Default netclass for nets which don't have their own.
|
/*
|
||||||
|
* This method returns the Default netclass for nets which don't have their own, and the
|
||||||
|
* Orphaned netclass for unassigned nets (netCode == 0)
|
||||||
|
*/
|
||||||
NETCLASS* BOARD_CONNECTED_ITEM::GetEffectiveNetclass() const
|
NETCLASS* BOARD_CONNECTED_ITEM::GetEffectiveNetclass() const
|
||||||
{
|
{
|
||||||
// NB: we must check the net first, as when it is 0 GetNetClass() will return the
|
// NB: we must check the net first, as when it is 0 GetNetClass() will return the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user