From 2225c4e4ed484d3c061ab4410727cb811c4802fe Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 28 Sep 2021 10:48:04 -0700 Subject: [PATCH] Replace GetRows() with GetNumberRows() because wx --- eeschema/dialogs/dialog_lib_edit_pin_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp index 0cd40fe9f6..b62b1b148e 100644 --- a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp +++ b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp @@ -646,7 +646,7 @@ void DIALOG_LIB_EDIT_PIN_TABLE::OnDeleteRow( wxCommandEvent& event ) for( auto pin : removedRow ) 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->SetGridCursor( curRow, m_grid->GetGridCursorCol() ); m_grid->SelectRow( curRow );