Commit cb210042 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

fix bug added two revisions ago by me

parent 48129681
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();

    /**
+5 −1
Original line number Diff line number Diff line
@@ -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;
}