Don't print clearance lines.

Fixes https://gitlab.com/kicad/code/kicad/issues/10883
This commit is contained in:
Jeff Young 2022-02-17 20:06:52 +00:00
parent cf88b9aaec
commit bc24002be7
1 changed files with 8 additions and 4 deletions

View File

@ -642,7 +642,8 @@ void PCB_PAINTER::draw( const PCB_TRACK* aTrack, int aLayer )
} }
// Clearance lines // Clearance lines
if( pcbconfig() && pcbconfig()->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS ) if( pcbconfig() && pcbconfig()->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS
&& !m_pcbSettings.m_isPrinting )
{ {
int clearance = aTrack->GetOwnClearance( m_pcbSettings.GetActiveLayer() ); int clearance = aTrack->GetOwnClearance( m_pcbSettings.GetActiveLayer() );
@ -684,7 +685,8 @@ void PCB_PAINTER::draw( const PCB_ARC* aArc, int aLayer )
} }
// Clearance lines // Clearance lines
if( pcbconfig() && pcbconfig()->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS ) if( pcbconfig() && pcbconfig()->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS
&& !m_pcbSettings.m_isPrinting )
{ {
int clearance = aArc->GetOwnClearance( m_pcbSettings.GetActiveLayer() ); int clearance = aArc->GetOwnClearance( m_pcbSettings.GetActiveLayer() );
@ -855,7 +857,8 @@ void PCB_PAINTER::draw( const PCB_VIA* aVia, int aLayer )
// Clearance lines // Clearance lines
if( pcbconfig() && pcbconfig()->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS if( pcbconfig() && pcbconfig()->m_Display.m_TrackClearance == SHOW_WITH_VIA_ALWAYS
&& aLayer != LAYER_VIA_HOLES ) && aLayer != LAYER_VIA_HOLES
&& !m_pcbSettings.m_isPrinting )
{ {
PCB_LAYER_ID activeLayer = m_pcbSettings.GetActiveLayer(); PCB_LAYER_ID activeLayer = m_pcbSettings.GetActiveLayer();
double radius; double radius;
@ -1263,7 +1266,8 @@ void PCB_PAINTER::draw( const PAD* aPad, int aLayer )
} }
if( pcbconfig() && pcbconfig()->m_Display.m_PadClearance if( pcbconfig() && pcbconfig()->m_Display.m_PadClearance
&& ( aLayer == LAYER_PAD_FR || aLayer == LAYER_PAD_BK || aLayer == LAYER_PADS_TH ) ) && ( aLayer == LAYER_PAD_FR || aLayer == LAYER_PAD_BK || aLayer == LAYER_PADS_TH )
&& !m_pcbSettings.m_isPrinting )
{ {
/* Showing the clearance area is not obvious. /* Showing the clearance area is not obvious.
* - A pad can be removed from some copper layers. * - A pad can be removed from some copper layers.