Use via's real drill value for hole size

If the via drill is "Default" be sure to get the default value rather
than the placeholder

Fixes https://gitlab.com/kicad/code/kicad/issues/9313
This commit is contained in:
Seth Hillbrand 2021-10-06 11:00:20 -07:00
parent 2c7da5e2bd
commit a8ec3b58ed
1 changed files with 1 additions and 1 deletions

View File

@ -1031,7 +1031,7 @@ std::unique_ptr<PNS::VIA> PNS_KICAD_IFACE_BASE::syncVia( PCB_VIA* aVia )
BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
via->SetHole( SHAPE_CIRCLE( aVia->GetPosition(),
aVia->GetDrill() / 2 + bds.GetHolePlatingThickness() ) );
aVia->GetDrillValue() / 2 + bds.GetHolePlatingThickness() ) );
return via;
}