Microvias always use separate uvia netclass properties.
There is no current microvia size/drill. Fixes https://gitlab.com/kicad/code/kicad/issues/13176
This commit is contained in:
parent
b5cb9eccbf
commit
7750d2e00e
|
@ -254,7 +254,7 @@ void DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildNetclassesGrid()
|
|||
m_netclassGrid->AppendRows( 1 );
|
||||
buildRow( row++, settings->m_DefaultNetClass );
|
||||
|
||||
m_netclassGrid->AppendRows( settings->m_NetClasses.size() );
|
||||
m_netclassGrid->AppendRows( (int) settings->m_NetClasses.size() );
|
||||
|
||||
for( const auto& [ name, netclass ] : settings->m_NetClasses )
|
||||
buildRow( row++, netclass );
|
||||
|
|
|
@ -53,7 +53,12 @@ void PCB_EDIT_FRAME::SetTrackSegmentWidth( PCB_TRACK* aTrackItem,
|
|||
// Get the drill value, regardless it is default or specific
|
||||
initial_drill = via->GetDrillValue();
|
||||
|
||||
if( aUseNetclassValue || via->GetViaType() == VIATYPE::MICROVIA )
|
||||
if( via->GetViaType() == VIATYPE::MICROVIA )
|
||||
{
|
||||
new_width = aTrackItem->GetEffectiveNetClass()->GetuViaDiameter();
|
||||
new_drill = aTrackItem->GetEffectiveNetClass()->GetuViaDrill();
|
||||
}
|
||||
else if( aUseNetclassValue )
|
||||
{
|
||||
new_width = aTrackItem->GetEffectiveNetClass()->GetViaDiameter();
|
||||
new_drill = aTrackItem->GetEffectiveNetClass()->GetViaDrill();
|
||||
|
|
Loading…
Reference in New Issue