From f33b158696083b63adc4ed16b52bc76d41b92813 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 2 Nov 2022 14:49:17 +0000 Subject: [PATCH] Honour 0-size pin names & numbers when printing and plotting. --- eeschema/lib_pin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eeschema/lib_pin.cpp b/eeschema/lib_pin.cpp index 68b8e63809..cd8153fcff 100644 --- a/eeschema/lib_pin.cpp +++ b/eeschema/lib_pin.cpp @@ -418,10 +418,10 @@ void LIB_PIN::printPinTexts( const RENDER_SETTINGS* aSettings, VECTOR2I& aPinPos wxString name = GetShownName(); wxString number = GetShownNumber(); - if( name.IsEmpty() ) + if( name.IsEmpty() || m_nameTextSize == 0 ) aDrawPinName = false; - if( number.IsEmpty() ) + if( number.IsEmpty() || m_numTextSize == 0 ) aDrawPinNum = false; if( aTextInside ) // Draw the text inside, but the pin numbers outside. @@ -749,10 +749,10 @@ void LIB_PIN::PlotPinTexts( PLOTTER *aPlotter, const VECTOR2I &aPinPos, int aPin wxString name = GetShownName(); wxString number = GetShownNumber(); - if( name.IsEmpty() ) + if( name.IsEmpty() || m_nameTextSize == 0 ) aDrawPinName = false; - if( number.IsEmpty() ) + if( number.IsEmpty() || m_numTextSize == 0 ) aDrawPinNum = false; if( !aDrawPinNum && !aDrawPinName )