minor fixes (compil warning and a very minor fix)

This commit is contained in:
jean-pierre charras 2017-10-02 20:39:09 +02:00
parent 569d909045
commit 06a59022e4
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ bool DIALOG_UPDATE_FIELDS::TransferDataFromWindow()
// Create the set of fields to be updated
m_fields.clear();
for( int i = 0; i < m_fieldsBox->GetCount(); ++i )
for( unsigned i = 0; i < m_fieldsBox->GetCount(); ++i )
{
if( m_fieldsBox->IsChecked( i ) )
m_fields.insert( m_fieldsBox->GetString( i ) );
@ -175,6 +175,6 @@ void DIALOG_UPDATE_FIELDS::updateFields( SCH_COMPONENT* aComponent )
void DIALOG_UPDATE_FIELDS::checkAll( bool aCheck )
{
for( int i = 0; i < m_fieldsBox->GetCount(); ++i )
for( unsigned i = 0; i < m_fieldsBox->GetCount(); ++i )
m_fieldsBox->Check( i, aCheck );
}

View File

@ -1014,7 +1014,7 @@ void SCH_EDIT_FRAME::OnUpdateFields( wxCommandEvent& event )
components.push_back( static_cast<SCH_COMPONENT*>( item ) );
}
if( InvokeDialogUpdateFields( this, components, true ) )
if( InvokeDialogUpdateFields( this, components, true ) == wxID_OK )
m_canvas->Refresh();
}