Fix minor compil warnings.
This commit is contained in:
parent
0ef7aeb274
commit
2fdf13ab79
|
@ -530,14 +530,14 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
|
|||
int index = m_gridSelectBox->GetSelection();
|
||||
wxASSERT( index != wxNOT_FOUND );
|
||||
|
||||
if( index == m_gridSelectBox->GetCount() - 2 )
|
||||
if( index == int( m_gridSelectBox->GetCount() - 2 ) )
|
||||
{
|
||||
// this is the separator
|
||||
wxUpdateUIEvent dummy;
|
||||
OnUpdateSelectGrid( dummy );
|
||||
return;
|
||||
}
|
||||
else if( index == m_gridSelectBox->GetCount() - 1 )
|
||||
else if( index == int( m_gridSelectBox->GetCount() - 1 ) )
|
||||
{
|
||||
wxUpdateUIEvent dummy;
|
||||
OnUpdateSelectGrid( dummy );
|
||||
|
|
|
@ -531,14 +531,14 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
|
|||
int index = m_gridSelectBox->GetSelection();
|
||||
wxASSERT( index != wxNOT_FOUND );
|
||||
|
||||
if( index == m_gridSelectBox->GetCount() - 2 )
|
||||
if( index == int( m_gridSelectBox->GetCount() - 2 ) )
|
||||
{
|
||||
// this is the separator
|
||||
wxUpdateUIEvent dummy;
|
||||
OnUpdateSelectGrid( dummy );
|
||||
return;
|
||||
}
|
||||
else if( index == m_gridSelectBox->GetCount() - 1 )
|
||||
else if( index == int( m_gridSelectBox->GetCount() - 1 ) )
|
||||
{
|
||||
wxUpdateUIEvent dummy;
|
||||
OnUpdateSelectGrid( dummy );
|
||||
|
|
|
@ -119,12 +119,12 @@ void PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event( wxCommandEvent& event )
|
|||
case ID_AUX_TOOLBAR_PCB_TRACK_WIDTH:
|
||||
ii = m_SelTrackWidthBox->GetSelection();
|
||||
|
||||
if( ii == m_SelViaSizeBox->GetCount() - 2 )
|
||||
if( ii == int( m_SelViaSizeBox->GetCount() - 2 ) )
|
||||
{
|
||||
// this is the separator
|
||||
m_SelTrackWidthBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() );
|
||||
}
|
||||
else if( ii == m_SelTrackWidthBox->GetCount() - 1 )
|
||||
else if( ii == int( m_SelTrackWidthBox->GetCount() - 1 ) )
|
||||
{
|
||||
m_SelTrackWidthBox->SetSelection( GetDesignSettings().GetTrackWidthIndex() );
|
||||
DoShowBoardSetupDialog( _( "Tracks & Vias" ) );
|
||||
|
@ -137,12 +137,12 @@ void PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event( wxCommandEvent& event )
|
|||
case ID_AUX_TOOLBAR_PCB_VIA_SIZE:
|
||||
ii = m_SelViaSizeBox->GetSelection();
|
||||
|
||||
if( ii == m_SelViaSizeBox->GetCount() - 2 )
|
||||
if( ii == int( m_SelViaSizeBox->GetCount() - 2 ) )
|
||||
{
|
||||
// this is the separator
|
||||
m_SelViaSizeBox->SetSelection( GetDesignSettings().GetViaSizeIndex() );
|
||||
}
|
||||
else if( ii == m_SelViaSizeBox->GetCount() - 1 )
|
||||
else if( ii == int( m_SelViaSizeBox->GetCount() - 1 ) )
|
||||
{
|
||||
m_SelViaSizeBox->SetSelection( GetDesignSettings().GetViaSizeIndex() );
|
||||
DoShowBoardSetupDialog( _( "Tracks & Vias" ) );
|
||||
|
|
Loading…
Reference in New Issue