Don't accept random values; use the popup to change to a known alternate

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16021
This commit is contained in:
Jeff Young 2023-11-03 18:48:19 +00:00
parent ac172b944a
commit f7d899a0fb
1 changed files with 6 additions and 0 deletions

View File

@ -162,6 +162,12 @@ public:
return false; // don't allow adjacent cell overflow, even if we are actually empty
}
bool CanSetValueAs( int aRow, int aCol, const wxString& aTypeName ) override
{
// Don't accept random values; must use the popup to change to a known alternate
return false;
}
wxString GetValue( int aRow, int aCol ) override
{
return GetValue( at( aRow ), aCol );