From 39fb96882027f691a2a55262d296b4495c30dd6c Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 31 Jan 2021 11:51:08 -0500 Subject: [PATCH] Fix broken map in findNumX2GerbersLoaded --- .../dialogs/dialog_layers_select_to_pcb.cpp | 58 +++++++++---------- 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/gerbview/dialogs/dialog_layers_select_to_pcb.cpp b/gerbview/dialogs/dialog_layers_select_to_pcb.cpp index 35795b7d6e..ee32127c3a 100644 --- a/gerbview/dialogs/dialog_layers_select_to_pcb.cpp +++ b/gerbview/dialogs/dialog_layers_select_to_pcb.cpp @@ -708,36 +708,34 @@ int LAYERS_MAP_DIALOG::findNumX2GerbersLoaded( std::vector& aGerber2KicadMa { { "Top", F_Cu }, { "L2", In1_Cu }, - { "L2", In1_Cu }, - { "L2", In2_Cu }, - { "L3", In3_Cu }, - { "L4", In4_Cu }, - { "L5", In5_Cu }, - { "L6", In6_Cu }, - { "L7", In7_Cu }, - { "L8", In8_Cu }, - { "L9", In9_Cu }, - { "L10", In10_Cu }, - { "L11", In11_Cu }, - { "L12", In12_Cu }, - { "L13", In13_Cu }, - { "L14", In14_Cu }, - { "L15", In15_Cu }, - { "L16", In16_Cu }, - { "L17", In17_Cu }, - { "L18", In18_Cu }, - { "L19", In19_Cu }, - { "L20", In20_Cu }, - { "L21", In21_Cu }, - { "L22", In22_Cu }, - { "L23", In23_Cu }, - { "L24", In24_Cu }, - { "L25", In25_Cu }, - { "L26", In26_Cu }, - { "L27", In27_Cu }, - { "L28", In28_Cu }, - { "L29", In29_Cu }, - { "L30", In30_Cu }, + { "L3", In2_Cu }, + { "L4", In3_Cu }, + { "L5", In4_Cu }, + { "L6", In5_Cu }, + { "L7", In6_Cu }, + { "L8", In7_Cu }, + { "L9", In8_Cu }, + { "L10", In9_Cu }, + { "L11", In10_Cu }, + { "L12", In11_Cu }, + { "L13", In12_Cu }, + { "L14", In13_Cu }, + { "L15", In14_Cu }, + { "L16", In15_Cu }, + { "L17", In16_Cu }, + { "L18", In17_Cu }, + { "L19", In18_Cu }, + { "L20", In19_Cu }, + { "L21", In20_Cu }, + { "L22", In21_Cu }, + { "L23", In22_Cu }, + { "L24", In23_Cu }, + { "L25", In24_Cu }, + { "L26", In25_Cu }, + { "L27", In26_Cu }, + { "L28", In27_Cu }, + { "L29", In28_Cu }, + { "L30", In29_Cu }, { "Bot", B_Cu }, { "BotGlue", B_Adhes }, { "TopGlue", F_Adhes },