summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-02-24 20:13:26 +0100
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-05 16:58:07 +0100
commit9b7377aa9623eeacccb9219bc87b6658b6af0285 (patch)
treea58331176696b9da6e06f45e449ccde0ab9b4dab /util
parent58ea5d52b4f30fc1d029db05b09b60fef49a6f2a (diff)
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 d7ee084880..4f39e0674d 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))