Fix EDA_TEXT creation that worked due to implicit cast

A leftover from the units object rework and I forgot to double back. The DEFAULT_SIZE_TEXT is set inside the constructor now
This commit is contained in:
Marek Roszko 2023-07-03 11:23:30 -04:00
parent 84a3cdada6
commit b5e420c33c
1 changed files with 2 additions and 2 deletions

View File

@ -1434,7 +1434,7 @@ LIB_PIN* SCH_SEXPR_PARSER::parsePin()
{
// The EDA_TEXT font effects formatting is used so use and EDA_TEXT object
// so duplicate parsing is not required.
EDA_TEXT text( schIUScale.MilsToIU( DEFAULT_SIZE_TEXT ) );
EDA_TEXT text( schIUScale );
parseEDA_TEXT( &text, true );
pin->SetNameTextSize( text.GetTextHeight() );
@ -1468,7 +1468,7 @@ LIB_PIN* SCH_SEXPR_PARSER::parsePin()
{
// The EDA_TEXT font effects formatting is used so use and EDA_TEXT object
// so duplicate parsing is not required.
EDA_TEXT text( schIUScale.MilsToIU( DEFAULT_SIZE_TEXT ) );
EDA_TEXT text( schIUScale );
parseEDA_TEXT( &text, false );
pin->SetNumberTextSize( text.GetTextHeight() );