Overbar in symbol's value field crashes kicad
Description
This may or may not be related to issue #15506 (closed). At least it is caused by similar actions, but this time affects only v7.99.
Following the steps below kicad answers reliable with a crash. requirements: use of overbar in value-string and setting these value-string to custom font
If the global setting Preferences-->Schematic Editor-->Display Options-->Appearance-->Default Font--> is already set to custom font (Arial), then kicad already crashes on the first doubleclick onto the value-string (crash at step3 below).
Steps to reproduce
- open attached project, open schematic:value_string_overbar_crash.zip
- locate Resistor R1: note the value-string contains the overbar-syntax ~{}
- doubleclick Value-String (to get "Edit Values Field" dialog
- change font to "Arial" (should be available on all sttandard windows installations)
- click OK, "Edit Values Field" dialog closes
- doubleclick again this Value-String: crash
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: 7.99.0-2406-g331176744c, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 8.0.0
FontConfig 2.14.2
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.82.0
OCC: 7.7.1
Curl: 8.2.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings:
Edited by Maik Freitag