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

View File

@ -1708,6 +1708,11 @@ FOOTPRINT* EAGLE_PLUGIN::makeFootprint( wxXmlNode* aPackage, const wxString& aPk
// Get the first package item and iterate // Get the first package item and iterate
wxXmlNode* packageItem = aPackage->GetChildren(); 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 ) while( packageItem )
{ {
const wxString& itemName = packageItem->GetName(); const wxString& itemName = packageItem->GetName();