From 3d33cba5747c592403a5a3d47384d47bc8370aa4 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 9 Apr 2019 10:14:32 -0400 Subject: [PATCH] Eeschema: fix schematic text object plotting issue. Save and restore text thickness in SCH_TEXT::Plot() function to prevent the plotting default thickness value from stepping on the original text thickness and causing all of the text objects to magically change to bold. Fixes lp:1823165 https://bugs.launchpad.net/kicad/+bug/1823165 --- eeschema/sch_text.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/sch_text.cpp b/eeschema/sch_text.cpp index 118dfe9c85..14eb355acd 100644 --- a/eeschema/sch_text.cpp +++ b/eeschema/sch_text.cpp @@ -530,6 +530,7 @@ void SCH_TEXT::Plot( PLOTTER* aPlotter ) { static std::vector Poly; COLOR4D color = GetLayerColor( GetLayer() ); + int tmp = GetThickness(); int thickness = GetPenSize(); // Two thicknesses are set here: @@ -572,12 +573,11 @@ void SCH_TEXT::Plot( PLOTTER* aPlotter ) if( Poly.size() ) aPlotter->PlotPoly( Poly, NO_FILL ); + + SetThickness( tmp ); } -/* - * Display the type, shape, size and some other props to the Message panel - */ void SCH_TEXT::GetMsgPanelInfo( EDA_UNITS_T aUnits, MSG_PANEL_ITEMS& aList ) { wxString msg;