Don't allow 0 field text size.
Fixes https://gitlab.com/kicad/code/kicad/issues/13987
This commit is contained in:
parent
e24ddd0be4
commit
cb71ea872b
|
@ -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 ) :
|
||||
|
|
Loading…
Reference in New Issue