Generate grid event when pasting into cell.
Fixes https://gitlab.com/kicad/code/kicad/issues/4599
This commit is contained in:
parent
b3b567e591
commit
ff3d5f0de6
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue