summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJoshua Grauman <jnfo@grauman.com>2013-10-26 15:25:03 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-30 09:44:07 +0100
commitf18fd0450c2490bbbe1f59a99580139815a82e2f (patch)
treef14a17d05ddb70245ee389bd28c77c0bece508af /tests/auto
parent43002e25723e923f035f1507eb5b66312ab708cd (diff)
Fix finding cursor position in words with accents
In positionInLigature() we were mixing indexes into the script item with indexes into the entire string. The getClusterLength() function would expect an attributes array for the current script item and it thus needs to be adjusted by si->position. In addition, when looking for the next grapheme boundary, we were comparing pos (which indexed the string) with end (which indexed the script item). This has also now been fixed by adjusting for si->position as well. Task-number: QTBUG-30123 Change-Id: Id02e2eddcc5b7888eacb34bd1e39cc6911880ca1 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions