Don't crash on an invalid replacementStart from an input method.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 9 May 2011 04:04:08 +0000 (14:04 +1000)
committerQt Continuous Integration System <qt-info@nokia.com>
Wed, 1 Jun 2011 04:55:27 +0000 (06:55 +0200)
commit3c7793acc0a5688e17ce2860c70fed7eae8690bb
tree960156d68c25cfe2a621b3bc965106ce8df9134b
parent15871d606a0a85cfcd2b68b95c0891165f61e402
Don't crash on an invalid replacementStart from an input method.

Ensure the cursor position does not exceed the bounds of the
current text.

Change-Id: If38f7729372562324d11eadd1a976c0c6da91863
Task-number: QTBUG-19054
Reviewed-by: Martin Jones
(cherry picked from commit 6fbfb1ab3f26ad672eb24f9b4a0ce1a8eea08298)
Reviewed-on: http://codereview.qt.nokia.com/290
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/gui/widgets/qlinecontrol.cpp