Fix glyphsEnd range check
authorJiang Jiang <jiang.jiang@nokia.com>
Thu, 19 Jan 2012 15:30:03 +0000 (16:30 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Jan 2012 13:19:59 +0000 (14:19 +0100)
commit91fa4b7043f85e6eb0a665f42fddccbf1d48689c
tree1e33c4ee61c9a594e3d7dfd49fed2a6c95924a2b
parentfc366046b42e4aa9f10efa81b978c89cfb7206a2
Fix glyphsEnd range check

For a character generating more than one glyphs, glyphsRun() needs
to check the next glyph index after the requested range. If that
glyph index is more than one larger than the glyphsEnd we currently
get from logClusters, then glyphsEnd need to be set to the next
glyph index minus one.

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