EAGLE PCB: fix a regression causing polygons not being imported.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15829
This commit is contained in:
Alex Shvartzkop 2023-10-06 01:13:58 +03:00
parent d6c3f4d190
commit bf29b25190
1 changed files with 4 additions and 1 deletions

View File

@ -1589,7 +1589,10 @@ ZONE* EAGLE_PLUGIN::loadPolygon( wxXmlNode* aPolyNode )
int rank = p.rank ? (p.max_priority - *p.rank) : p.max_priority;
zone->SetAssignedPriority( rank );
return zone.release();
ZONE* zonePtr = zone.release();
m_board->Add( zonePtr, ADD_MODE::APPEND );
return zonePtr;
}