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:
parent
97b0005780
commit
6f05bb9a83
|
@ -742,7 +742,7 @@ void EDA_TEXT::printOneLineOfText( const RENDER_SETTINGS* aSettings, const VECTO
|
||||||
const wxString& aText, const VECTOR2I& aPos )
|
const wxString& aText, const VECTOR2I& aPos )
|
||||||
{
|
{
|
||||||
wxDC* DC = aSettings->GetPrintDC();
|
wxDC* DC = aSettings->GetPrintDC();
|
||||||
int penWidth = std::max( GetEffectiveTextPenWidth(), aSettings->GetDefaultPenWidth() );
|
int penWidth = GetEffectiveTextPenWidth( aSettings->GetDefaultPenWidth() );
|
||||||
|
|
||||||
if( aFillMode == SKETCH )
|
if( aFillMode == SKETCH )
|
||||||
penWidth = -penWidth;
|
penWidth = -penWidth;
|
||||||
|
|
Loading…
Reference in New Issue