Change Symbol Output Message lists new library identifier twice

Description

The Output Message should output the old library identifier, and the new identifier, but it outputs the new identifier twice.

image

I'm not sure when or why, but sometimes it also lists the same reference more than once. For some reason it varies if it lists one or two references on the same row. The double listing seems to happen when it lists more than one symbol on the same row.

image

Steps to reproduce

  1. Create a blank schematic
  2. Add a symbol to it.
  3. Right click on the symbol and select Change Symbol.
  4. Select a New library identifier.
  5. Click Change.

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: 7.0.7-31-g00226ae40a, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 6.0.0
	FontConfig 2.14.1
	libcurl/7.88.1-DEV Schannel zlib/1.2.13

Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Aug 22 2023 05:13:40
	wxWidgets: 3.2.2 (wchar_t,wx containers)
	Boost: 1.81.0
	OCC: 7.7.1
	Curl: 7.88.1-DEV
	ngspice: 40
	Compiler: Visual C++ 1936 without C++ ABI

Build settings:
	KICAD_SPICE=ON