PCB:Unexpected netname on pin in alternate mode
Description
When I define all pins in a connector symbol as having all alternate electrical mode, and choose two to be power in, one of those pins get an unexpected netname. This bug is related to feature request #22259
Steps to reproduce
- Load attached project bugtest.zip
- Check pin8 of J1. On the PCB it has the name GND_1, but on schematic it is GND.
KiCad Version
Application: KiCad x64 on x64
Version: 9.0.6, release build
Libraries: wxWidgets 3.2.8 FreeType 2.13.3 HarfBuzz 10.2.0 FontConfig 2.15.0 libcurl/8.13.0-DEV Schannel zlib/1.3.1
Platform: Windows 11 (build 26200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info: Date: Oct 30 2025 19:36:12 wxWidgets: 3.2.8 (wchar_t,wx containers) Boost: 1.88.0 OCC: 7.9.1 Curl: 8.13.0-DEV ngspice: 45.2 Compiler: Visual C++ 1944 without C++ ABI KICAD_IPC_API=ON
Locale: Lang: nb_NO Enc: UTF-8 Num: 1 234.5 Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)