From 259cacf64847d082e36ed15615c77f5b3e9a4073 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Mon, 10 Aug 2020 19:27:46 +0100 Subject: [PATCH] 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 --- eeschema/fields_grid_table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/fields_grid_table.cpp b/eeschema/fields_grid_table.cpp index 5a3ed040eb..3f0cac1830 100644 --- a/eeschema/fields_grid_table.cpp +++ b/eeschema/fields_grid_table.cpp @@ -505,8 +505,8 @@ void FIELDS_GRID_TABLE::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: