From bf29b25190e85bac13b3a3a70fc66a4bd2a092ef Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Fri, 6 Oct 2023 01:13:58 +0300 Subject: [PATCH] EAGLE PCB: fix a regression causing polygons not being imported. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15829 --- pcbnew/plugins/eagle/eagle_plugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/plugins/eagle/eagle_plugin.cpp b/pcbnew/plugins/eagle/eagle_plugin.cpp index 86c47fb24d..9816b8d1b5 100644 --- a/pcbnew/plugins/eagle/eagle_plugin.cpp +++ b/pcbnew/plugins/eagle/eagle_plugin.cpp @@ -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; }