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


(cherry picked from commit b5e420c33c)
This commit is contained in:
Marek Roszko 2023-07-03 11:23:30 -04:00 committed by Mark Roszko
parent ebc584b2a7
commit 24ed144200
1 changed files with 2 additions and 2 deletions

View File

@ -1397,7 +1397,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() );
@ -1431,7 +1431,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() );