mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 19:59:18 +00:00
PANEL_SETUP_LAYERS: fix broken init of copper layer types.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19715
This commit is contained in:
parent
88b56413d5
commit
0748a1ca34
@ -344,7 +344,15 @@ void PANEL_SETUP_LAYERS::showLayerTypes()
|
||||
for( PCB_LAYER_ID cu_layer : LSET::AllCuMask().Seq() )
|
||||
{
|
||||
wxChoice* ctl = getChoice( cu_layer );
|
||||
ctl->SetStringSelection( LAYER::ShowType( m_pcb->GetLayerType( cu_layer ) ) );
|
||||
|
||||
switch( m_pcb->GetLayerType( cu_layer ) )
|
||||
{
|
||||
default:
|
||||
case LT_SIGNAL: ctl->SetSelection( 0 ); break;
|
||||
case LT_POWER: ctl->SetSelection( 1 ); break;
|
||||
case LT_MIXED: ctl->SetSelection( 2 ); break;
|
||||
case LT_JUMPER: ctl->SetSelection( 3 ); break;
|
||||
}
|
||||
}
|
||||
|
||||
for( int ii = User_1; ii <= User_9; ++ii )
|
||||
|
Loading…
Reference in New Issue
Block a user