Replace GetRows() with GetNumberRows() because wx

This commit is contained in:
Seth Hillbrand 2021-09-28 10:48:04 -07:00
parent 880f209563
commit 2225c4e4ed
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ void DIALOG_LIB_EDIT_PIN_TABLE::OnDeleteRow( wxCommandEvent& event )
for( auto pin : removedRow ) for( auto pin : removedRow )
m_pins.erase( std::find( m_pins.begin(), m_pins.end(), pin ) ); m_pins.erase( std::find( m_pins.begin(), m_pins.end(), pin ) );
curRow = std::min( curRow, m_grid->GetRows() - 1 ); curRow = std::min( curRow, m_grid->GetNumberRows() - 1 );
m_grid->GoToCell( curRow, m_grid->GetGridCursorCol() ); m_grid->GoToCell( curRow, m_grid->GetGridCursorCol() );
m_grid->SetGridCursor( curRow, m_grid->GetGridCursorCol() ); m_grid->SetGridCursor( curRow, m_grid->GetGridCursorCol() );
m_grid->SelectRow( curRow ); m_grid->SelectRow( curRow );