diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-02-24 20:13:43 +0100 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-05 16:58:09 +0100 |
commit | 455fac38c5a8ec9ef5c531ec7860a17b05ccfd07 (patch) | |
tree | ceccbedf4482bd717adde535da50e3ef0f8d7333 /util/unicode/main.cpp | |
parent | 873883e83943918c344122f4da4291e8e71f0b5f (diff) | |
download | qt4-tools-455fac38c5a8ec9ef5c531ec7860a17b05ccfd07.tar.gz |
fix incorect condition
Merge-request: 480
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'util/unicode/main.cpp')
-rw-r--r-- | util/unicode/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp index a7553e8260..86da8a4297 100644 --- a/util/unicode/main.cpp +++ b/util/unicode/main.cpp @@ -1259,7 +1259,7 @@ static void readCaseFolding() UnicodeData ud = unicodeData.value(codepoint, UnicodeData(codepoint)); if (foldMap.size() == 1) { ud.p.caseFoldDiff = foldMap.at(0) - codepoint; - maxCaseFoldDiff = qMax(maxCaseFoldDiff, ud.p.caseFoldDiff); + maxCaseFoldDiff = qMax(maxCaseFoldDiff, qAbs(ud.p.caseFoldDiff)); if (codepoint > 0xffff) { // if the condition below doesn't hold anymore we need to modify our case folding code //qDebug() << codepoint << QChar::highSurrogate(codepoint) << QChar::highSurrogate(foldMap.at(0)); |