Fix bug which caused repeated characters in a QML Text
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Mon, 20 Jun 2011 08:45:36 +0000 (10:45 +0200)
committerQt Continuous Integration System <qt-info@nokia.com>
Mon, 20 Jun 2011 11:08:48 +0000 (13:08 +0200)
commit18eb310d5bcbc4193bef0a5d45c01ed10f46579e
tree4706c81d0c2970daf4126a45d30ae87a05cd051a
parentf562b90518137997f6e06765ebc550394a0bf114
Fix bug which caused repeated characters in a QML Text

We would include too much in the characters displayed, since
itemEnd is actually the start of the next item and not the
end of the current one. Adding a minus one removes the duplicated
characters at the end of text lines.

Change-Id: I1e13470548fafaa692ae58e019e9e2469a947f5e
Reviewed-on: http://codereview.qt.nokia.com/495
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/gui/text/qtextlayout.cpp