From 24ed1442003a0e6bb7aa19c71d34ab7e30b34149 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 (cherry picked from commit b5e420c33c98e6dbec37092beee07e464efd9cee) --- 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 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() );