summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaks Naumov <maksqwe1@ukr.net>2015-03-14 20:35:55 +0200
committerKonstantin Ritt <ritt.ks@gmail.com>2015-03-30 18:03:32 +0000
commit2c1d597b653f16dc80a87d637c94213120f32d90 (patch)
tree4c2b964cdad7df12a8516385b1bdd75411b546a0
parentea47d152b35158ba07a55d009f57df0e4c2a048f (diff)
Fix invalid characters count in QBig5hkscsCodec::convertFromUnicode()
Change-Id: I3b06361f93e7ab6a3336b2c432e0a163a34ccb43 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
-rw-r--r--src/corelib/codecs/qbig5codec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/codecs/qbig5codec.cpp b/src/corelib/codecs/qbig5codec.cpp
index 5957d1eda3..6fd87bdfc9 100644
--- a/src/corelib/codecs/qbig5codec.cpp
+++ b/src/corelib/codecs/qbig5codec.cpp
@@ -1913,6 +1913,7 @@ QByteArray QBig5hkscsCodec::convertFromUnicode(const QChar *uc, int len, Convert
} else {
// Error
*cursor++ = replacement;
+ ++invalid;
}
}
rstr.resize(cursor - (uchar*)rstr.constData());