Don't label free pads with connections as '*'.
Fixes https://gitlab.com/kicad/code/kicad/issues/8385
This commit is contained in:
parent
3d32c096ab
commit
97a2c4094b
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue