Avoid drawing netnames when not in board editor
Shouldn't be needed if we properly clear the netinfo but there's no reason to keep netnames so better to avoid possible issues Fixes https://gitlab.com/kicad/code/kicad/-/issues/16981
This commit is contained in:
parent
c48fc7ebff
commit
08bdf1abae
|
@ -1694,7 +1694,7 @@ void PCB_PAINTER::draw( const PCB_SHAPE* aShape, int aLayer )
|
||||||
int thickness = getLineThickness( aShape->GetWidth() );
|
int thickness = getLineThickness( aShape->GetWidth() );
|
||||||
LINE_STYLE lineStyle = aShape->GetStroke().GetLineStyle();
|
LINE_STYLE lineStyle = aShape->GetStroke().GetLineStyle();
|
||||||
|
|
||||||
if( IsNetnameLayer( aLayer ) )
|
if( IsNetnameLayer( aLayer ) && m_frameType == FRAME_T::FRAME_PCB_EDITOR )
|
||||||
{
|
{
|
||||||
if( !pcbconfig() || pcbconfig()->m_Display.m_NetNames < 2 )
|
if( !pcbconfig() || pcbconfig()->m_Display.m_NetNames < 2 )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue