Don't allow 0 field text size.

Fixes https://gitlab.com/kicad/code/kicad/issues/13987

(cherry picked from commit cb71ea872b)
This commit is contained in:
Jeff Young 2023-02-22 11:39:48 +00:00
parent 51d0b8d2b5
commit 7894b41277
1 changed files with 2 additions and 0 deletions

View File

@ -1446,6 +1446,8 @@ void SIM_MODEL::MigrateSimModel( T_symbol& aSymbol, const PROJECT* aProject )
FIELD_INFO()
{
m_Attributes.m_Visible = false;
m_Attributes.m_Size = VECTOR2I( DEFAULT_SIZE_TEXT * schIUScale.IU_PER_MILS,
DEFAULT_SIZE_TEXT * schIUScale.IU_PER_MILS );
};
FIELD_INFO( const wxString& aText, T_field* aField ) :