local power port acts as global port

Description

The example project below shows a situation where local port symbols on different sheets are connected together.

Sadly I don't know how I got into this situation, but maybe the schematic files might give a hint.

This could very well be a user error (giving it's a new feature), but if not it's serious as the user doesn't expect this unwanted connection.

Steps to reproduce

  1. open attached project, open root schematic: local_powerport_acts_global.zip
  2. you will find a local power port "+48V" on a small net on the rrot sheet
  3. you will find the same items also on subsheet 2 ("Spannungsversorgung")
  4. highlight that net --> all "+48V" nets on both subsheets are connected together. This should not happen with a local power port symbol
  5. If you try the same with local power port "+7V": this works as expected.

local_01

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: 9.99.0-5522-g400384cf72, release build

Libraries:
	wxWidgets 3.3.2
	FreeType 2.13.3
	HarfBuzz 12.3.0
	FontConfig 2.17.1

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) HD Graphics 4000, 4.0.0 - Build 10.18.10.5161

	wxWidgets: 3.3.2 (wchar_t,STL containers)
	Boost: 1.90.0
	OCC: 7.9.2
	Curl: 8.18.0
	ngspice: 45.2
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON
	KICAD_USE_PCH=OFF

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Assignee Loading
Time tracking Loading