diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-05-25 16:24:30 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-05-25 16:33:04 (GMT) |
commit | 3f82ecbd0e2cdf477e57c7fe41b63c09d7e84787 (patch) | |
tree | ba0f87d6ea20b84b9096aba79dec9561a974744f | |
parent | e38aaf9f7c91efb6197f7f579e3064e0e6dcce1e (diff) | |
download | Qt-3f82ecbd0e2cdf477e57c7fe41b63c09d7e84787.zip Qt-3f82ecbd0e2cdf477e57c7fe41b63c09d7e84787.tar.gz Qt-3f82ecbd0e2cdf477e57c7fe41b63c09d7e84787.tar.bz2 |
Fix boundry conditions for cursor hit test
Clicking at the edge of a glyph means lookup for the left glyph.
Reviewed-by: TrustMe
(cherry picked from commit 31110bf84bb06d57983501fa65fe0db3f7c61927)
-rw-r--r-- | src/gui/text/qtextengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 69598cf..9271f34 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -2739,7 +2739,7 @@ int QTextEngine::positionInLigature(const QScriptItem *si, int end, if (glyph_pos == -1 && end > 0) glyph_pos = logClusters[end - 1]; else { - if (x < edge) + if (x <= edge) glyph_pos--; } |