diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-08-22 19:36:49 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-08-24 11:28:20 +0000 |
commit | fe13695644c3af79979d753fc5fe4d7e45d10a27 (patch) | |
tree | 1c84c21b5aea1b57a023db51a5aa8639e3931bf5 /src/widgets/graphicsview/qgraphicsproxywidget.cpp | |
parent | 41fabc9b2729f401a4a2953870d5f4753ad064f0 (diff) | |
download | qtbase-fe13695644c3af79979d753fc5fe4d7e45d10a27.tar.gz |
Unicode: fix the grapheme clustering algorithm
An oversight in the code kept the algorithm in the GB11 state, even if
the codepoint that is being processed wouldn't allow for that (for
instance a sequence of ExtPic, Ext and Any).
Refactor the code of GB11/GB12/GB13 to deal with code points that break
the sequences (falling back to "normal" handling).
Add some manual tests; interestingly enough, the failing cases are not
covered by Unicode's tests, as we now pass the entire test suite.
Amends a794c5e287381bd056008b20ae55f9b1e0acf138.
Fixes: QTBUG-94951
Change-Id: If987d5ccf7c6b13de36d049b1b3d88a3c4b6dd00
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit d48058f1970a795afb4cedaae54dde7ca69cb252)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsproxywidget.cpp')
0 files changed, 0 insertions, 0 deletions