Commit a398d459 authored by Wayne Stambaugh's avatar Wayne Stambaugh
Browse files

Fix coding policy violations missed in previous commit.

parent 4aa28d82
Loading
Loading
Loading
Loading
+16 −12
Original line number Original line Diff line number Diff line
@@ -99,6 +99,7 @@ void DIALOG_ERC::Init()
    m_buttonERC->SetDefault();
    m_buttonERC->SetDefault();
}
}



void DIALOG_ERC::updateMarkerCounts( SCH_SCREENS *screens )
void DIALOG_ERC::updateMarkerCounts( SCH_SCREENS *screens )
{
{
    int markers = screens->GetMarkerCount();
    int markers = screens->GetMarkerCount();
@@ -115,6 +116,7 @@ void DIALOG_ERC::updateMarkerCounts( SCH_SCREENS *screens )
    m_LastWarningCount->SetValue( num );
    m_LastWarningCount->SetValue( num );
}
}



/* Delete the old ERC markers, over the whole hierarchy
/* Delete the old ERC markers, over the whole hierarchy
 */
 */
void DIALOG_ERC::OnEraseDrcMarkersClick( wxCommandEvent& event )
void DIALOG_ERC::OnEraseDrcMarkersClick( wxCommandEvent& event )
@@ -161,6 +163,7 @@ void DIALOG_ERC::OnErcCmpClick( wxCommandEvent& event )
        m_MessagesList->AppendText( messageList[ii] );
        m_MessagesList->AppendText( messageList[ii] );
}
}



void DIALOG_ERC::OnLeftClickMarkersList( wxCommandEvent& event )
void DIALOG_ERC::OnLeftClickMarkersList( wxCommandEvent& event )
{
{
    m_lastMarkerFound = NULL;
    m_lastMarkerFound = NULL;
@@ -180,6 +183,7 @@ void DIALOG_ERC::OnLeftClickMarkersList( wxCommandEvent& event )
    for( sheet = SheetList.GetFirst(); sheet; sheet = SheetList.GetNext() )
    for( sheet = SheetList.GetFirst(); sheet; sheet = SheetList.GetNext() )
    {
    {
        SCH_ITEM* item = (SCH_ITEM*) sheet->LastDrawList();
        SCH_ITEM* item = (SCH_ITEM*) sheet->LastDrawList();

        for( ; item; item = item->Next() )
        for( ; item; item = item->Next() )
        {
        {
            if( item == marker )
            if( item == marker )
@@ -238,8 +242,7 @@ void DIALOG_ERC::OnLeftDblClickMarkersList( wxCommandEvent& event )
void DIALOG_ERC::ReBuildMatrixPanel()
void DIALOG_ERC::ReBuildMatrixPanel()
{
{
    // Try to know the size of bitmap button used in drc matrix
    // Try to know the size of bitmap button used in drc matrix
    wxBitmapButton * dummy = new wxBitmapButton( m_matrixPanel, wxID_ANY,
    wxBitmapButton * dummy = new wxBitmapButton( m_matrixPanel, wxID_ANY, KiBitmap( ercerr_xpm ) );
                                                 KiBitmap( ercerr_xpm ) );
    wxSize bitmap_size = dummy->GetSize();
    wxSize bitmap_size = dummy->GetSize();
    delete dummy;
    delete dummy;


@@ -348,6 +351,7 @@ void DIALOG_ERC::DisplayERC_MarkersList()
    m_MarkersList->ClearList();
    m_MarkersList->ClearList();


    SCH_SHEET_PATH* sheet = sheetList.GetFirst();
    SCH_SHEET_PATH* sheet = sheetList.GetFirst();

    for( ; sheet != NULL; sheet = sheetList.GetNext() )
    for( ; sheet != NULL; sheet = sheetList.GetNext() )
    {
    {
        SCH_ITEM* item = sheet->LastDrawList();
        SCH_ITEM* item = sheet->LastDrawList();