diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2015-08-31 13:55:52 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-09-01 16:28:49 +0100 |
commit | d9096da5413984cfa65151f9dbdcc5da271c74a1 (patch) | |
tree | 70a64f8736d8aed056f7ae931a6b1786a7614b07 /svtools/source | |
parent | 2d860a8cef3ee887ac5cad1bc67b0f820a63b78d (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/source')
-rw-r--r-- | svtools/source/graphic/grfcache.cxx | 2 |
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 ]; |