diff --git a/common/dialogs/panel_design_block_lib_table.cpp b/common/dialogs/panel_design_block_lib_table.cpp index 3dfe6eec8c..9512764144 100644 --- a/common/dialogs/panel_design_block_lib_table.cpp +++ b/common/dialogs/panel_design_block_lib_table.cpp @@ -660,6 +660,8 @@ void PANEL_DESIGN_BLOCK_LIB_TABLE::deleteRowHandler( wxCommandEvent& event ) if( !m_cur_grid->CommitPendingChanges() ) return; + wxGridUpdateLocker noUpdates( m_cur_grid ); + int curRow = m_cur_grid->GetGridCursorRow(); int curCol = m_cur_grid->GetGridCursorCol(); diff --git a/eeschema/dialogs/panel_sym_lib_table.cpp b/eeschema/dialogs/panel_sym_lib_table.cpp index a229cad892..18983170db 100644 --- a/eeschema/dialogs/panel_sym_lib_table.cpp +++ b/eeschema/dialogs/panel_sym_lib_table.cpp @@ -730,6 +730,8 @@ void PANEL_SYM_LIB_TABLE::deleteRowHandler( wxCommandEvent& event ) if( !m_cur_grid->CommitPendingChanges() ) return; + wxGridUpdateLocker noUpdates( m_cur_grid ); + int curRow = m_cur_grid->GetGridCursorRow(); int curCol = m_cur_grid->GetGridCursorCol(); diff --git a/pcbnew/dialogs/panel_fp_lib_table.cpp b/pcbnew/dialogs/panel_fp_lib_table.cpp index 80b8a24f07..e3d52634ff 100644 --- a/pcbnew/dialogs/panel_fp_lib_table.cpp +++ b/pcbnew/dialogs/panel_fp_lib_table.cpp @@ -689,6 +689,8 @@ void PANEL_FP_LIB_TABLE::deleteRowHandler( wxCommandEvent& event ) if( !m_cur_grid->CommitPendingChanges() ) return; + wxGridUpdateLocker noUpdates( m_cur_grid ); + int curRow = m_cur_grid->GetGridCursorRow(); int curCol = m_cur_grid->GetGridCursorCol();