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:
parent
ebc584b2a7
commit
24ed144200
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue