Do not put cursor at non-stop character positions
authorJiang Jiang <jiang.jiang@nokia.com>
Tue, 13 Sep 2011 15:35:08 +0000 (17:35 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 Nov 2011 00:54:33 +0000 (01:54 +0100)
commitc30ebdeac028a3fe4a820cd5fe8360d11d14868d
tree80578d8757369499060d1764c0653af121606969
parent75a2b9eef203b20584b4d0ac1589b4a3398afe08
Do not put cursor at non-stop character positions

When moving cursors, non-stop positions are skipped, however certain
input sequences can still lead us there. In such cases we should
simply ignore those positions in cursorToX.

Task-number: QTBUG-7076
Change-Id: Ia0a25931f4043359f72a6c0c14a74b905e40b93e
Reviewed-by: Eskil
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qtextlayout.cpp
tests/auto/gui/text/qtextlayout/tst_qtextlayout.cpp