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
(cherry picked from commit 3d33cba574
)
This commit is contained in:
parent
42d9f42807
commit
bc821ff47d
|
@ -523,6 +523,7 @@ void SCH_TEXT::Plot( PLOTTER* aPlotter )
|
|||
{
|
||||
static std::vector <wxPoint> Poly;
|
||||
COLOR4D color = GetLayerColor( GetLayer() );
|
||||
int tmp = GetThickness();
|
||||
int thickness = GetPenSize();
|
||||
|
||||
// Two thicknesses are set here:
|
||||
|
@ -565,12 +566,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;
|
||||
|
|
Loading…
Reference in New Issue