summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2015-08-31 13:55:52 +0200
committerMarco Cecchetti <marco.cecchetti@collabora.com>2015-08-31 19:31:15 +0200
commit713692722d52277b847f0baaf7d767684c5df082 (patch)
tree4acd13784d85ee1c5d0dbf51fd1f6edd9fb1f09f
parent82d968a576f6562f6359d4551976fa635c978c89 (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
-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 20b68f6701bb..28e4ab0a457e 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 ];