From d150803deed222e8d3251cd4f052516d0c2ea8ca Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 21 Aug 2023 09:14:27 -0400 Subject: [PATCH] Grid Tricks: entering editor needs to set selection to edited cell Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15453 --- common/grid_tricks.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/grid_tricks.cpp b/common/grid_tricks.cpp index 77aa61f0e7..39b9dae97e 100644 --- a/common/grid_tricks.cpp +++ b/common/grid_tricks.cpp @@ -162,6 +162,11 @@ bool GRID_TRICKS::showEditor( int aRow, int aCol ) { m_grid->ClearSelection(); + m_sel_row_start = aRow; + m_sel_col_start = aCol; + m_sel_row_count = 1; + m_sel_col_count = 1; + if( m_grid->GetSelectionMode() == wxGrid::wxGridSelectRows ) { wxArrayInt rows = m_grid->GetSelectedRows();