Don't allow 0 field text size.

Fixes https://gitlab.com/kicad/code/kicad/issues/13987
This commit is contained in:
Jeff Young 2023-02-22 11:39:48 +00:00
parent e24ddd0be4
commit cb71ea872b
1 changed files with 2 additions and 0 deletions

View File

@ -1445,6 +1445,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 ) :