changing symbol-unit not possible: raises exception
Description
Changing the symbol-unit from a multi-unit-symbol in the schematic is not possible. Instead it generates an exception-error-dialog.
This report is based on recreating the issue from forum-thread https://forum.kicad.info/t/problem-editing-schemas-with-same-name/37136
Steps to reproduce
- open attached project, open schematic
- look at U102A: LM358, multi-uni-symbol, only unit "A" is placed
- doubleclick U201A
- get symbol-properties-dialog
- change "Unit"-setting to from "A" to Unit "B" or "C"
- click "OK"-button
- ---> get exception-warning
schematic_change_unit_exception.zip
KiCad Version
Application: KiCad Schematic Editor (64-bit)
Version: (6.99.0-2795-gf695ae5522), release build
Libraries:
wxWidgets 3.1.7
FreeType 2.11.1
HarfBuzz 4.2.0
FontConfig 2.14.0
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.1.7 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.83.1-DEV
ngspice: 37
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Edited by Maik Freitag