Need an item to pick a netclass value.

This commit is contained in:
Jeff Young 2020-10-11 00:14:12 +01:00
parent 310786333d
commit f680ff17d6
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ bool PNS_KICAD_IFACE_BASE::ImportSizes( PNS::SIZES_SETTINGS& aSizes, PNS::ITEM*
int viaDiameter = 0;
int viaDrill = 0;
if( bds.UseNetClassVia() ) // netclass value
if( bds.UseNetClassVia() && aStartItem ) // netclass value
{
PNS::CONSTRAINT diaConstraint, drillConstraint;
bool okDia = m_ruleResolver->QueryConstraint( PNS::CONSTRAINT_TYPE::CT_VIA_DIAMETER,