Fix through via drawing width

Related to fix for https://gitlab.com/kicad/code/kicad/-/issues/11851
This commit is contained in:
Seth Hillbrand 2022-07-27 12:09:35 -07:00
parent 31db2b8525
commit 7113f1f879
1 changed files with 0 additions and 7 deletions

View File

@ -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 );
}