Apply a similar fix as pads for B&W via printing.
Fixes https://gitlab.com/kicad/code/kicad/issues/6496
This commit is contained in:
parent
896ad4a749
commit
190197794d
|
@ -255,6 +255,21 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons
|
||||||
if( hasAnnularRing && m_layerColors[ aLayer ] == m_layerColors[ LAYER_PADS_TH ] )
|
if( hasAnnularRing && m_layerColors[ aLayer ] == m_layerColors[ LAYER_PADS_TH ] )
|
||||||
aLayer = LAYER_PCB_BACKGROUND;
|
aLayer = LAYER_PCB_BACKGROUND;
|
||||||
}
|
}
|
||||||
|
else if( aLayer == LAYER_VIAS_HOLES )
|
||||||
|
{
|
||||||
|
const VIA* via = static_cast<const VIA*>( item );
|
||||||
|
int annularRingLayer;
|
||||||
|
|
||||||
|
if( via->GetViaType() == VIATYPE::MICROVIA )
|
||||||
|
annularRingLayer = LAYER_VIA_MICROVIA;
|
||||||
|
else if( via->GetViaType() == VIATYPE::BLIND_BURIED )
|
||||||
|
annularRingLayer = LAYER_VIA_BBLIND;
|
||||||
|
else
|
||||||
|
annularRingLayer = LAYER_VIA_THROUGH;
|
||||||
|
|
||||||
|
if( m_layerColors[ aLayer ] == m_layerColors[ annularRingLayer ] )
|
||||||
|
aLayer = LAYER_PCB_BACKGROUND;
|
||||||
|
}
|
||||||
|
|
||||||
// Zones should pull from the copper layer
|
// Zones should pull from the copper layer
|
||||||
if( item && item->Type() == PCB_ZONE_T && IsZoneLayer( aLayer ) )
|
if( item && item->Type() == PCB_ZONE_T && IsZoneLayer( aLayer ) )
|
||||||
|
|
Loading…
Reference in New Issue