Symbol editor: fix bug: Italic style ignored when drawing fields.

Fixes: lp:1815997
https://bugs.launchpad.net/kicad/+bug/1815997
This commit is contained in:
jean-pierre charras 2019-02-15 15:56:41 +01:00
parent b848a424e8
commit 24185f45f2
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
*
* Copyright (C) 2014 CERN
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
* Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -407,6 +408,7 @@ void SCH_PAINTER::draw( LIB_FIELD *aField, int aLayer )
m_gal->SetIsStroke( true );
m_gal->SetStrokeColor( color );
m_gal->SetGlyphSize( VECTOR2D( aField->GetTextSize() ) );
m_gal->SetFontItalic( aField->IsItalic() );
m_gal->SetHorizontalJustify( aField->GetHorizJustify( ) );
m_gal->SetVerticalJustify( aField->GetVertJustify( ) );