Mercurial > trustbridge
changeset 403:7a15a3066f7b
Fill to two characters
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 16 Apr 2014 11:00:18 +0000 (2014-04-16) |
parents | bae8d4a20ef1 |
children | 17e1c8f37d72 |
files | ui/certificate.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/certificate.cpp Wed Apr 16 11:03:53 2014 +0200 +++ b/ui/certificate.cpp Wed Apr 16 11:00:18 2014 +0000 @@ -56,7 +56,7 @@ unsigned char sha1sum[20]; sha1(chain.raw.p, chain.raw.len, sha1sum); for (int i=0; i < 20; i++) { - mFingerprint += QString("%1").arg(sha1sum[i], 0, 16); + mFingerprint += QString("%1").arg(sha1sum[i], 0, 16).rightJustified(2, '0'); if (i != 19) { mFingerprint += ":"; }