Generate grid event when pasting into cell.

Fixes https://gitlab.com/kicad/code/kicad/issues/4599
This commit is contained in:
Jeff Young 2020-08-05 01:21:36 +01:00
parent b3b567e591
commit ff3d5f0de6
1 changed files with 5 additions and 0 deletions

View File

@ -574,7 +574,12 @@ void GRID_TRICKS::paste_text( const wxString& cb_text )
wxString cellTxt = cols.GetNextToken();
if( tbl->CanSetValueAs( row, col, wxGRID_VALUE_STRING ) )
{
tbl->SetValue( row, col, cellTxt );
wxGridEvent evt( m_grid->GetId(), wxEVT_GRID_CELL_CHANGED, m_grid, row, col );
m_grid->GetEventHandler()->ProcessEvent( evt );
}
}
}
}