Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
6.2.2
-
None
-
Linux Mint '5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux'
Windows 10 English
Windows 10 German
Description
Problem: QFontComboBox causes a segmentation fault if a non-existent font had been set with setCurrentFont().
Steps to reporoduce:
- Create object QFont tableFont
- Set the object to a non-existing font, e.g. by restoring settings with QSettings that does not provide a default value.
- Create object QFontComboBox comboFont
- Set said font object to QFontComboBox by using comboFont.setCurrentFont(tableFont)
- Watch Qt producing the following error:
QFont::fromString: Invalid description ',-1,-1,5,400,0,0,0,0,0,0,0,0,0,0,1' - Access comboFont. , e.g. by setting {{comboFont.}}setFontFilters(QFontComboBox::ProportionalFonts)
- Segmentation fault occurs on both Windows and Linux.
See attached backtraces for the GUI thread.