Fix cursor truncate to include line position
authorJiang Jiang <jiang.jiang@nokia.com>
Tue, 3 Jul 2012 08:17:49 +0000 (10:17 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 9 Jul 2012 13:03:56 +0000 (15:03 +0200)
commitaee1702b136f5d7c332e9963a400ff9128bcb5b6
tree9ca488993caaba1f92d03bfaadab89ea55096dd5
parent43850e5295cf6ce94edce417bbb550cc2438dbd3
Fix cursor truncate to include line position

Since we could have moved the line position (QTextLine::setPosition),
the truncating position should be adjusted with that.

Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
(cherry picked from commit ca89c49fa2c5cbb3945897046f33eed9f7da846c)

Change-Id: I89ea1a3776a50732181bdfea9e79b4dddef950d4
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qtextlayout.cpp