Entries typed into the text size field should be read as mils

Previously, they were being interpreted as inches, and then being
displayed as mils - leading to a multiplication by 1000 if there
was no unit string included.

Fixes https://gitlab.com/kicad/code/kicad/issues/5117
This commit is contained in:
Ian McInerney 2020-08-10 19:27:46 +01:00
parent 9716c62e32
commit 259cacf648
1 changed files with 2 additions and 2 deletions

View File

@ -505,8 +505,8 @@ void FIELDS_GRID_TABLE<T>::SetValue( int aRow, int aCol, const wxString &aValue
break;
case FDC_TEXT_SIZE:
field.SetTextSize( wxSize( ValueFromString( m_userUnits, aValue ),
ValueFromString( m_userUnits, aValue ) ) );
field.SetTextSize( wxSize( ValueFromString( m_userUnits, aValue, true ),
ValueFromString( m_userUnits, aValue, true ) ) );
break;
case FDC_ORIENTATION: