pcbnew: fixup small type issue

This commit is contained in:
Seth Hillbrand 2019-05-14 21:46:11 -07:00
parent 69afa27a5f
commit b3b5ffe799
1 changed files with 4 additions and 4 deletions

View File

@ -668,7 +668,7 @@ bool DIALOG_DRC_CONTROL::writeReport( const wxString& aFullFileName )
void DIALOG_DRC_CONTROL::OnDeleteOneClick( wxCommandEvent& event )
{
int selectedIndex;
ssize_t selectedIndex;
int curTab = m_Notebook->GetSelection();
if( curTab == 0 )
@ -681,12 +681,12 @@ void DIALOG_DRC_CONTROL::OnDeleteOneClick( wxCommandEvent& event )
m_brdEditor->SetCurItem( NULL );
m_brdEditor->GetToolManager()->RunAction( PCB_ACTIONS::selectionClear, true );
size_t newIndex = wxNOT_FOUND;
ssize_t newIndex = wxNOT_FOUND;
if( m_ClearanceListBox->GetItemCount() > 1 )
{
newIndex = ( selectedIndex == m_ClearanceListBox->GetItemCount() - 1 ) ?
selectedIndex - 1 : selectedIndex;
newIndex = std::min( selectedIndex,
static_cast<ssize_t>( m_ClearanceListBox->GetItemCount() - 2 ) );
}
m_ClearanceListBox->DeleteItem( selectedIndex );