EDA_TEXT::printOneLineOfText(): fix incorrect line thickness calculation.

(It was not the same as the one used to draw texts)
Fixes #11849
https://gitlab.com/kicad/code/kicad/issues/11849
This commit is contained in:
jean-pierre charras 2022-06-18 09:30:54 +02:00
parent 97b0005780
commit 6f05bb9a83
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ void EDA_TEXT::printOneLineOfText( const RENDER_SETTINGS* aSettings, const VECTO
const wxString& aText, const VECTOR2I& aPos )
{
wxDC* DC = aSettings->GetPrintDC();
int penWidth = std::max( GetEffectiveTextPenWidth(), aSettings->GetDefaultPenWidth() );
int penWidth = GetEffectiveTextPenWidth( aSettings->GetDefaultPenWidth() );
if( aFillMode == SKETCH )
penWidth = -penWidth;