Fix extra selection in QML TextEdit
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Thu, 22 Sep 2011 07:20:52 +0000 (09:20 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Sep 2011 07:42:43 +0000 (09:42 +0200)
commit33c3525e38580a8333d86316ad79952359d4ac31
tree997aa0d78bc9d74845e2c037a1375cdc5cf1fc69
parentdefa339b371204788504d41bea737d05a5d53285
Fix extra selection in QML TextEdit

QSGTextEdit::selectionEnd() interprets the selection end as the
first character after the selection, while QSGTextNode expects it
to be the end of the selection.

Task-number: QTBUG-21533
Change-Id: Ia928602f8a2f845f3990a443e62f640ea72aa1d4
Reviewed-on: http://codereview.qt-project.org/5363
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/declarative/items/qsgtextedit.cpp
src/declarative/items/qsgtextnode.cpp