Fix crash with invalid pre-edit position.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 4 Apr 2012 05:34:09 +0000 (15:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Apr 2012 08:38:10 +0000 (10:38 +0200)
commit5a02c2115c2522847ac3388e2719de6876166e03
tree5677ce13ab6ad58b3e7eca15041be434d61d4ffe
parentefdadbb3d6413c909dc0c7d6c0f3713684c671c6
Fix crash with invalid pre-edit position.

Ensure the script item position is within the bounds of the text block
when adjusted to compensate for pre-edit text.

Change-Id: I2c745bf08afc0d9bc3aba27c24c2a123af017dc6
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/text/qtextengine.cpp