Set padstack earlier in via properties dialog
Need to override specific padstack properties after setting the whole thing
This commit is contained in:
@@ -691,11 +691,13 @@ bool DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow()
|
||||
if( m_viaNotFree->Get3StateValue() != wxCHK_UNDETERMINED )
|
||||
v->SetIsFree( !m_viaNotFree->GetValue() );
|
||||
|
||||
if( !m_viaDiameter.IsIndeterminate() )
|
||||
v->SetPadstack( *m_viaStack );
|
||||
|
||||
switch( m_ViaTypeChoice->GetSelection() )
|
||||
{
|
||||
case 0:
|
||||
v->SetViaType( VIATYPE::THROUGH );
|
||||
v->SanitizeLayers();
|
||||
break;
|
||||
case 1:
|
||||
v->SetViaType( VIATYPE::MICROVIA );
|
||||
@@ -710,18 +712,20 @@ bool DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow()
|
||||
PCB_LAYER_ID startLayer = static_cast<PCB_LAYER_ID>( m_ViaStartLayer->GetLayerSelection() );
|
||||
PCB_LAYER_ID endLayer = static_cast<PCB_LAYER_ID>( m_ViaEndLayer->GetLayerSelection() );
|
||||
|
||||
if (startLayer != UNDEFINED_LAYER )
|
||||
if( startLayer != UNDEFINED_LAYER )
|
||||
{
|
||||
m_viaStack->Drill().start = startLayer;
|
||||
v->SetTopLayer( startLayer );
|
||||
}
|
||||
|
||||
if (endLayer != UNDEFINED_LAYER )
|
||||
if( endLayer != UNDEFINED_LAYER )
|
||||
{
|
||||
m_viaStack->Drill().end = endLayer;
|
||||
v->SetBottomLayer( endLayer );
|
||||
}
|
||||
|
||||
v->SanitizeLayers();
|
||||
|
||||
switch( m_annularRingsCtrl->GetSelection() )
|
||||
{
|
||||
case 0:
|
||||
@@ -740,11 +744,6 @@ bool DIALOG_TRACK_VIA_PROPERTIES::TransferDataFromWindow()
|
||||
break;
|
||||
}
|
||||
|
||||
if( !m_viaDiameter.IsIndeterminate() )
|
||||
v->SetPadstack( *m_viaStack );
|
||||
|
||||
v->SanitizeLayers();
|
||||
|
||||
switch( m_tentingFrontCtrl->GetSelection() )
|
||||
{
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user