Pcbnew: when adding layers, do not change via layers.
Via layers are not defined by a LSET, and the code that used the new LSET broke the Via start and/or end layers (for blind/buried vias) From master branch Fixes #15856 https://gitlab.com/kicad/code/kicad/-/issues/15856
This commit is contained in:
parent
84df2c86ae
commit
8432fb4fea
|
@ -545,11 +545,10 @@ bool PANEL_SETUP_LAYERS::TransferDataFromWindow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for( PCB_TRACK* via : m_pcb->Tracks() )
|
// Tracks do not change their layer
|
||||||
{
|
// Vias layers are defined by the starting layer and the ending layer, so
|
||||||
if( via->HasHole() )
|
// they are not modified by adding a layer.
|
||||||
via->SetLayerSet( via->GetLayerSet() | LSET::InternalCuMask() );
|
// So do nothing for tracks/vias
|
||||||
}
|
|
||||||
|
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue