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:
parent
d5a2059c21
commit
55b782d66e
|
@ -1713,6 +1713,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();
|
||||||
|
|
Loading…
Reference in New Issue