From 57ad779797e3e93cb11ff216f7199c327a2aab63 Mon Sep 17 00:00:00 2001 From: modbw Date: Wed, 27 Aug 2025 00:11:21 +0000 Subject: [PATCH] Fix net assignment messed up in Eagle import When there is a polygon in the Eagle project withput any pad connected netCode was not incremented and so the wrong nets were assigned to the following elements. Fixes https://gitlab.com/kicad/code/kicad/-/issues/21243 --- pcbnew/pcb_io/eagle/pcb_io_eagle.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp b/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp index e32f1d1bcf..8c0233ea4c 100644 --- a/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp +++ b/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp @@ -2926,10 +2926,9 @@ void PCB_IO_EAGLE::loadSignals( wxXmlNode* aSignals ) // therefore omit this signal/net. } - else - { - netCode++; - } + + //Next signal needs a new netCode + netCode++; // Get next signal net = net->GetNext();