EAGLE PCB: fix a regression causing polygons not being imported.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15829
This commit is contained in:
parent
d6c3f4d190
commit
bf29b25190
|
@ -1589,7 +1589,10 @@ ZONE* EAGLE_PLUGIN::loadPolygon( wxXmlNode* aPolyNode )
|
||||||
int rank = p.rank ? (p.max_priority - *p.rank) : p.max_priority;
|
int rank = p.rank ? (p.max_priority - *p.rank) : p.max_priority;
|
||||||
zone->SetAssignedPriority( rank );
|
zone->SetAssignedPriority( rank );
|
||||||
|
|
||||||
return zone.release();
|
ZONE* zonePtr = zone.release();
|
||||||
|
m_board->Add( zonePtr, ADD_MODE::APPEND );
|
||||||
|
|
||||||
|
return zonePtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue