summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/code
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-11-29 15:02:26 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-12-02 19:09:13 +0100
commit40e364172f001ce7dd6e4e72716e9c17c9d29b9e (patch)
treef72978c857e6d7ba08948e17d7d0ad0c274c119f /src/gui/doc/snippets/code
parentcbd2f56c14159a1a566f4e423b910256724fdb6a (diff)
Fix assert in certain cases of missing glyph in a string
If a substring for a fallback engine spanned multiple characters, we would only assign the first of the characters to a glyph in log clusters. This could cause the log clusters array to become non-monotonic (you could get an array like [0, 1, 2, 0, 3, 4]). In turn, this would confuse the text layout algorithm which depends on the indexes always increasing, and we would sometimes hit an assert in addNextCluster() if we were unlucky. To rectify this, make sure all characters in the substring are mapped to the same cluster. Fixes: QTBUG-131731 Pick-to: 5.15 6.5 6.8 Change-Id: I93415a58351349ead6eb7a016b32b09f274e6fe4 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/gui/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions