summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-02-24 19:13:43 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-05 15:58:09 (GMT)
commit455fac38c5a8ec9ef5c531ec7860a17b05ccfd07 (patch)
treececcbedf4482bd717adde535da50e3ef0f8d7333 /util
parent873883e83943918c344122f4da4291e8e71f0b5f (diff)
downloadQt-455fac38c5a8ec9ef5c531ec7860a17b05ccfd07.zip
Qt-455fac38c5a8ec9ef5c531ec7860a17b05ccfd07.tar.gz
Qt-455fac38c5a8ec9ef5c531ec7860a17b05ccfd07.tar.bz2
fix incorect condition
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 a7553e8..86da8a4 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));