paste special with unique Annotations creates duplicate reference-numbers
Description
The "paste special" with unique annotations creates duplicated Reference designators if the pasted selection contains multi-unit-symbols were some units are missing/not in the selection.
Steps to reproduce
- open attached project, open schematic
- first run annotate schematic (entire schematic / reset existing / sheet number * 100). (see picture 1)
- select all symbols, CTRL+C to copy selection (see picture 2)
- RMB-click-->context-menu-->Paste special. (see picture 3)
- select option: Assign unique Reference designators. click OK to paste. (see picture 4)
- observe copy-paste-result:
- all single-unit-symbols got a correctly numbered Reference
- all multi-unit-symbols with missing B-unit (IC101/IC102/IC103) got a duplicated Reference number --> all got "IC107A"
- the complete multi-unit-symbol (IC104/IC105 with both units A+B in the copy/paste-selection) got a good reference number
paste_special_new_annotation.zip
KiCad Version
Application: KiCad Schematic Editor (64-bit)
Version: (6.99.0-1757-g37aa42d1e3), release build
Libraries:
wxWidgets 3.1.5
FreeType 2.11.1
HarfBuzz 2.8.2
FontConfig 2.13.1
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.6.0
Curl: 7.78.0-DEV
ngspice: 36
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON