Don't print clearance lines.
Fixes https://gitlab.com/kicad/code/kicad/issues/10883
This commit is contained in:
parent
cf88b9aaec
commit
bc24002be7
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue