From b5e420c33c98e6dbec37092beee07e464efd9cee Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 3 Jul 2023 11:23:30 -0400 Subject: [PATCH] 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 --- eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp index f378d6be59..ce9c36eb7f 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp @@ -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() );