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:
parent
8b6a166698
commit
d6c4215a1f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue