Don't label free pads with connections as '*'.

Fixes https://gitlab.com/kicad/code/kicad/issues/8385
This commit is contained in:
Jeff Young 2021-06-07 23:36:03 +01:00
parent 3d32c096ab
commit 97a2c4094b
1 changed files with 1 additions and 7 deletions

View File

@ -832,12 +832,6 @@ void PCB_PAINTER::draw( const VIA* aVia, int aLayer )
} }
bool isImplicitNet( const wxString& aNetName )
{
return aNetName.StartsWith( wxT( "Net-(" ) ) || aNetName.StartsWith( wxT( "unconnected-(" ) );
}
void PCB_PAINTER::draw( const PAD* aPad, int aLayer ) void PCB_PAINTER::draw( const PAD* aPad, int aLayer )
{ {
BOARD* board = aPad->GetBoard(); BOARD* board = aPad->GetBoard();
@ -914,7 +908,7 @@ void PCB_PAINTER::draw( const PAD* aPad, int aLayer )
if( pinType == wxT( "no_connect" ) || pinType.EndsWith( wxT( "+no_connect" ) ) ) if( pinType == wxT( "no_connect" ) || pinType.EndsWith( wxT( "+no_connect" ) ) )
netname = "x"; netname = "x";
else if( pinType == wxT( "free" ) && isImplicitNet( netname ) ) else if( pinType == wxT( "free" ) && netname.StartsWith( wxT( "unconnected-(" ) ) )
netname = "*"; netname = "*";
// calculate the size of net name text: // calculate the size of net name text: