Grid Tricks: entering editor needs to set selection to edited cell

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15453
This commit is contained in:
Mike Williams 2023-08-21 09:14:27 -04:00
parent 3d0dc2fc1b
commit d150803dee
1 changed files with 5 additions and 0 deletions

View File

@ -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();