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
This commit is contained in:
Steffen Mauch 2022-01-08 21:14:53 +01:00 committed by Seth Hillbrand
parent d5a2059c21
commit 55b782d66e
1 changed files with 5 additions and 0 deletions

View File

@ -1713,6 +1713,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();