Skip boundry neutral characters in bidi itemization
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 22 Jun 2011 12:23:47 +0000 (14:23 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 14 Jul 2011 09:21:55 +0000 (11:21 +0200)
commit9e7a21291c7a76424aaccac2332f22ae856f1fdc
tree6fbabd205965afdc830b5241c45e0b4d1fdc0783
parent1080586abcce9ed0e3acb9e193dfcd568b01bc5c
Skip boundry neutral characters in bidi itemization

According to UAX #9, bidiItemize should act as if those characters
don't exist. If we don't, dir and status.eor here may become
QChar::DirBN, thus interfere the result of bidiItemize.

Task-number: QTBUG-19949
Reviewed-by: Lars Knoll
(cherry picked from commit a5c3064439a9f1483565e5d9dfbf0342cd9236f0)

Change-Id: I224cfdf5b38433a31d33b6d944d5770accf74546
Reviewed-on: http://codereview.qt.nokia.com/1631
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/gui/text/qtextengine.cpp
tests/auto/qcomplextext/bidireorderstring.h