summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-02-24 19:13:26 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-05 15:58:07 (GMT)
commit9b7377aa9623eeacccb9219bc87b6658b6af0285 (patch)
treea58331176696b9da6e06f45e449ccde0ab9b4dab /util
parent58ea5d52b4f30fc1d029db05b09b60fef49a6f2a (diff)
downloadQt-9b7377aa9623eeacccb9219bc87b6658b6af0285.zip
Qt-9b7377aa9623eeacccb9219bc87b6658b6af0285.tar.gz
Qt-9b7377aa9623eeacccb9219bc87b6658b6af0285.tar.bz2
make sure that the sequences in specialCaseMap are unique
there is was a bug caused appending the same sequence again and again... this fix also reduces count of unique unicode properties (and blocks) Merge-request: 480 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'util')
-rw-r--r--util/unicode/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp
index d7ee084..4f39e06 100644
--- a/util/unicode/main.cpp
+++ b/util/unicode/main.cpp
@@ -351,7 +351,7 @@ static int appendToSpecialCaseMap(const QList<int> &map)
specialCaseMaxLen = qMax(specialCaseMaxLen, utf16map.size());
utf16map << 0;
- for (int i = 0; i < specialCaseMap.size() - utf16map.size() - 1; ++i) {
+ for (int i = 0; i < specialCaseMap.size() - utf16map.size() + 1; ++i) {
int j;
for (j = 0; j < utf16map.size(); ++j) {
if (specialCaseMap.at(i+j) != utf16map.at(j))