Eeschema: fix a bug in LIB_TEXT::Plot, that plotted an empty text.

Fixes: lp:1827124
https://bugs.launchpad.net/kicad/+bug/1827124
This commit is contained in:
jean-pierre charras 2019-07-05 15:54:24 +02:00
parent f20335cefe
commit b74bccbb13
1 changed files with 2 additions and 2 deletions

View File

@ -188,11 +188,11 @@ void LIB_TEXT::Plot( PLOTTER* plotter, const wxPoint& offset, bool fill,
COLOR4D color;
if( plotter->GetColorMode() ) // Used normal color or selected color
color = IsSelected() ? GetItemSelectedColor() : GetDefaultColor();
color = GetDefaultColor();
else
color = COLOR4D::BLACK;
plotter->Text( pos, color, GetShownText(), t1 ? TEXT_ANGLE_HORIZ : TEXT_ANGLE_VERT,
plotter->Text( pos, color, GetText(), t1 ? TEXT_ANGLE_HORIZ : TEXT_ANGLE_VERT,
GetTextSize(), GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_CENTER,
GetPenSize(), IsItalic(), IsBold() );
}