diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-05-25 08:55:52 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-05-25 09:21:10 (GMT) |
commit | 2552c99cfeaaba44db77467bf50176173ff14457 (patch) | |
tree | 77fe7562e4a17e6dfb3f66b91139fd2b7b8a2841 /src/gui/text/qtextengine_p.h | |
parent | 727f5e50447bf47040746a7a37d488204b279171 (diff) | |
download | Qt-2552c99cfeaaba44db77467bf50176173ff14457.zip Qt-2552c99cfeaaba44db77467bf50176173ff14457.tar.gz Qt-2552c99cfeaaba44db77467bf50176173ff14457.tar.bz2 |
Fix cursor position test on CursorOnCharacter case
Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/text/qtextengine_p.h')
-rw-r--r-- | src/gui/text/qtextengine_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine_p.h b/src/gui/text/qtextengine_p.h index 8e1d796..90e931c 100644 --- a/src/gui/text/qtextengine_p.h +++ b/src/gui/text/qtextengine_p.h @@ -620,7 +620,7 @@ public: QFixed leadingSpaceWidth(const QScriptLine &line); QFixed offsetInLigature(const QScriptItem *si, int pos, int max, int glyph_pos); - int positionInLigature(const QScriptItem *si, int end, QFixed x, QFixed edge, int glyph_pos); + int positionInLigature(const QScriptItem *si, int end, QFixed x, QFixed edge, int glyph_pos, bool cursorOnCharacter); int previousLogicalPosition(int oldPos) const; int nextLogicalPosition(int oldPos) const; int lineNumberForTextPosition(int pos); |