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:
parent
2c7da5e2bd
commit
a8ec3b58ed
|
@ -1031,7 +1031,7 @@ std::unique_ptr<PNS::VIA> PNS_KICAD_IFACE_BASE::syncVia( PCB_VIA* aVia )
|
||||||
|
|
||||||
BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
|
BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
|
||||||
via->SetHole( SHAPE_CIRCLE( aVia->GetPosition(),
|
via->SetHole( SHAPE_CIRCLE( aVia->GetPosition(),
|
||||||
aVia->GetDrill() / 2 + bds.GetHolePlatingThickness() ) );
|
aVia->GetDrillValue() / 2 + bds.GetHolePlatingThickness() ) );
|
||||||
|
|
||||||
return via;
|
return via;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue