From 24185f45f20789010088aa9eeab874337faf0764 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 15 Feb 2019 15:56:41 +0100 Subject: [PATCH] Symbol editor: fix bug: Italic style ignored when drawing fields. Fixes: lp:1815997 https://bugs.launchpad.net/kicad/+bug/1815997 --- eeschema/sch_painter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index 7c2cc3e0f5..392da46210 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -3,6 +3,7 @@ * * Copyright (C) 2014 CERN * @author Tomasz Wlostowski + * 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( ) );