Via properties: apply microvia settings to microvias

This commit is contained in:
Simon Richter 2016-08-25 02:28:57 +02:00 committed by Chris Pavlina
parent 532a5fb827
commit 260b0f6b5f
1 changed files with 17 additions and 2 deletions

View File

@ -289,8 +289,23 @@ bool DIALOG_TRACK_VIA_PROPERTIES::Apply()
if( m_viaNetclass->IsChecked() ) if( m_viaNetclass->IsChecked() )
{ {
v->SetWidth( v->GetNetClass()->GetViaDiameter() ); switch( v->GetViaType() )
v->SetDrill( v->GetNetClass()->GetViaDrill() ); {
default:
wxFAIL_MSG("Unhandled via type");
// fall through
case VIA_THROUGH:
case VIA_BLIND_BURIED:
v->SetWidth( v->GetNetClass()->GetViaDiameter() );
v->SetDrill( v->GetNetClass()->GetViaDrill() );
break;
case VIA_MICROVIA:
v->SetWidth( v->GetNetClass()->GetuViaDiameter() );
v->SetDrill( v->GetNetClass()->GetuViaDrill() );
break;
}
} }
else else
{ {