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:
parent
84a3cdada6
commit
b5e420c33c
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue