From d6c4215a1f0c2c0a6694780df2952bdf5b38b493 Mon Sep 17 00:00:00 2001 From: Steffen Mauch Date: Sat, 8 Jan 2022 21:14:53 +0100 Subject: [PATCH] pcbnew: EAGLE importer does map value to wrong layer if nothing is defined in original EAGLE footprint Fixes https://gitlab.com/kicad/code/kicad/issues/10311 (cherry picked from commit 55b782d66e25a4f946da06e3601eafc4248b45d1) --- pcbnew/plugins/eagle/eagle_plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/plugins/eagle/eagle_plugin.cpp b/pcbnew/plugins/eagle/eagle_plugin.cpp index e364c8d688..13905a78dc 100644 --- a/pcbnew/plugins/eagle/eagle_plugin.cpp +++ b/pcbnew/plugins/eagle/eagle_plugin.cpp @@ -1708,6 +1708,11 @@ FOOTPRINT* EAGLE_PLUGIN::makeFootprint( wxXmlNode* aPackage, const wxString& aPk // Get the first package item and iterate wxXmlNode* packageItem = aPackage->GetChildren(); + // layer 27 is default layer for tValues + // set default layer for created footprint + PCB_LAYER_ID layer = kicad_layer( 27 ); + m.get()->Value().SetLayer( layer ); + while( packageItem ) { const wxString& itemName = packageItem->GetName();