fix bug added two revisions ago by me

This commit is contained in:
Dick Hollenbeck 2012-05-21 13:50:46 -05:00
parent 4812968129
commit cb210042b8
2 changed files with 6 additions and 2 deletions

View File

@ -232,7 +232,7 @@ public:
unsigned m_RatsnestEndIdx; // Ending point of ratsnests of this net
// (excluded) in this buffer
NETINFO_ITEM( BOARD_ITEM* aParent, const wxString& aNetName = NETCLASS::Default, int aNetCode = 0 );
NETINFO_ITEM( BOARD_ITEM* aParent, const wxString& aNetName = wxEmptyString, int aNetCode = 0 );
~NETINFO_ITEM();
/**

View File

@ -25,6 +25,10 @@
NETINFO_ITEM::NETINFO_ITEM( BOARD_ITEM* aParent, const wxString& aNetName, int aNetCode )
{
SetNet( aNetCode );
if( aNetName.size() )
SetNetname( aNetName );
m_NbNodes = 0;
m_NbLink = 0;
m_NbNoconn = 0;
@ -33,7 +37,7 @@ NETINFO_ITEM::NETINFO_ITEM( BOARD_ITEM* aParent, const wxString& aNetName, int a
// general buffer of ratsnest
m_RatsnestEndIdx = 0; // Ending point of ratsnests of this net
m_NetClassName = aNetName;
m_NetClassName = NETCLASS::Default;
m_NetClass = 0;
}