Honour 0-size pin names & numbers when printing and plotting.
This commit is contained in:
parent
13b097396b
commit
f33b158696
|
@ -418,10 +418,10 @@ void LIB_PIN::printPinTexts( const RENDER_SETTINGS* aSettings, VECTOR2I& aPinPos
|
||||||
wxString name = GetShownName();
|
wxString name = GetShownName();
|
||||||
wxString number = GetShownNumber();
|
wxString number = GetShownNumber();
|
||||||
|
|
||||||
if( name.IsEmpty() )
|
if( name.IsEmpty() || m_nameTextSize == 0 )
|
||||||
aDrawPinName = false;
|
aDrawPinName = false;
|
||||||
|
|
||||||
if( number.IsEmpty() )
|
if( number.IsEmpty() || m_numTextSize == 0 )
|
||||||
aDrawPinNum = false;
|
aDrawPinNum = false;
|
||||||
|
|
||||||
if( aTextInside ) // Draw the text inside, but the pin numbers outside.
|
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 name = GetShownName();
|
||||||
wxString number = GetShownNumber();
|
wxString number = GetShownNumber();
|
||||||
|
|
||||||
if( name.IsEmpty() )
|
if( name.IsEmpty() || m_nameTextSize == 0 )
|
||||||
aDrawPinName = false;
|
aDrawPinName = false;
|
||||||
|
|
||||||
if( number.IsEmpty() )
|
if( number.IsEmpty() || m_numTextSize == 0 )
|
||||||
aDrawPinNum = false;
|
aDrawPinNum = false;
|
||||||
|
|
||||||
if( !aDrawPinNum && !aDrawPinName )
|
if( !aDrawPinNum && !aDrawPinName )
|
||||||
|
|
Loading…
Reference in New Issue