summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlist.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <[email protected]>2025-08-22 10:39:54 +0200
committerEskil Abrahamsen Blomfeldt <[email protected]>2025-08-22 21:32:03 +0200
commit06b71660247f96195d17da21441a5e30209b9055 (patch)
tree3e2018680e3016b3eceb1d079eac3629058f9dfc /src/gui/text/qtextlist.cpp
parent0b3d7b9e60480f0721019a0fe4b35ecd8f52d9a8 (diff)
Fix crash in QFont::exactMatch() with different family countsHEADdev
This amends d8602ce58b6ef268be84b9aa0166b0c3fa6a96e8. This change prepared for removing the singular family from the QFontDef, making the families list the only way to store family names. Before this, there was some intricate logic here to support when both family and families were set. The idea was to make it possible to match a QFont where family was set to a QFont where a single family had been added to families. For all other cases where the families lists had different lengths, we would return false. Since this was no longer needed, the code was removed, but it also accidentally introduced a crash when the sizes of the two families lists were different. This simply puts back the check for different family counts and returns false if they are different like before. Pick-to: 6.5 6.8 6.9 6.10 Fixes: QTBUG-138561 Change-Id: I864c19105dc5d582a43023e71e46b1efb29cbc21 Reviewed-by: Andy Shaw <[email protected]>
Diffstat (limited to 'src/gui/text/qtextlist.cpp')
0 files changed, 0 insertions, 0 deletions