diff --git a/pcbnew/dialogs/panel_setup_layers.cpp b/pcbnew/dialogs/panel_setup_layers.cpp index ceb49bd691..0710759c88 100644 --- a/pcbnew/dialogs/panel_setup_layers.cpp +++ b/pcbnew/dialogs/panel_setup_layers.cpp @@ -545,11 +545,10 @@ bool PANEL_SETUP_LAYERS::TransferDataFromWindow() } } - for( PCB_TRACK* via : m_pcb->Tracks() ) - { - if( via->HasHole() ) - via->SetLayerSet( via->GetLayerSet() | LSET::InternalCuMask() ); - } + // Tracks do not change their layer + // Vias layers are defined by the starting layer and the ending layer, so + // they are not modified by adding a layer. + // So do nothing for tracks/vias modified = true; }