summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2015-08-31 13:55:52 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-09-01 16:28:49 +0100
commitd9096da5413984cfa65151f9dbdcc5da271c74a1 (patch)
tree70a64f8736d8aed056f7ae931a6b1786a7614b07 /svtools
parent2d860a8cef3ee887ac5cad1bc67b0f820a63b78d (diff)
Fixed a bug the 64-bit checksum switch code was affected by
Changed the size of the string buffer used for converting 4 integer values into a hexadecimal string: aHexStr.setLength(24 + (2 * BITMAP_CHECKSUM_SIZE)) Change-Id: I5936bae4ce3b41e85a68f6f342b5288f7f9395fe
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/graphic/grfcache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index 6c099107233a..59bbeb227ca1 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -123,7 +123,7 @@ OString GraphicID::GetIDString() const
{
OStringBuffer aHexStr;
sal_Int32 nShift, nIndex = 0;
- aHexStr.setLength(32);
+ aHexStr.setLength(24 + (2 * BITMAP_CHECKSUM_SIZE));
for( nShift = 28; nShift >= 0; nShift -= 4 )
aHexStr[nIndex++] = aHexData[ ( mnID1 >> (sal_uInt32) nShift ) & 0xf ];