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>
This commit is contained in:
Maks Naumov 2015-03-14 20:35:55 +02:00 committed by Konstantin Ritt
parent ea47d152b3
commit 2c1d597b65

View File

@ -1913,6 +1913,7 @@ QByteArray QBig5hkscsCodec::convertFromUnicode(const QChar *uc, int len, Convert
} else {
// Error
*cursor++ = replacement;
++invalid;
}
}
rstr.resize(cursor - (uchar*)rstr.constData());