From 97a2c4094b55f6c5bf8c35d0508053df2ecb1aa1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 7 Jun 2021 23:36:03 +0100 Subject: [PATCH] Don't label free pads with connections as '*'. Fixes https://gitlab.com/kicad/code/kicad/issues/8385 --- pcbnew/pcb_painter.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 86e19ec525..4e6b79b64e 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -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 ) { 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" ) ) ) netname = "x"; - else if( pinType == wxT( "free" ) && isImplicitNet( netname ) ) + else if( pinType == wxT( "free" ) && netname.StartsWith( wxT( "unconnected-(" ) ) ) netname = "*"; // calculate the size of net name text: