Fix through via drawing width
Related to fix for https://gitlab.com/kicad/code/kicad/-/issues/11851
This commit is contained in:
parent
31db2b8525
commit
7113f1f879
|
@ -849,19 +849,12 @@ void PCB_PAINTER::draw( const PCB_VIA* aVia, int aLayer )
|
|||
}
|
||||
else if( aLayer == LAYER_VIA_THROUGH || m_pcbSettings.IsPrinting() )
|
||||
{
|
||||
int annular_width = ( aVia->GetWidth() - getDrillSize( aVia ) ) / 2.0;
|
||||
double radius = aVia->GetWidth() / 2.0;
|
||||
bool draw = aLayer == LAYER_VIA_THROUGH;
|
||||
|
||||
if( m_pcbSettings.IsPrinting() )
|
||||
draw = aVia->FlashLayer( m_pcbSettings.GetPrintLayers() );
|
||||
|
||||
if( !sketchMode )
|
||||
{
|
||||
m_gal->SetLineWidth( annular_width );
|
||||
radius -= annular_width / 2.0;
|
||||
}
|
||||
|
||||
if( draw )
|
||||
m_gal->DrawCircle( center, radius );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue