diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp index 84cbc92aee..07e4e661ba 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp @@ -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() );