diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-08-27 21:27:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-09-01 16:28:47 +0100 |
commit | 8ecd142d32334d0180d4d0bcee00b0f0e15a3e45 (patch) | |
tree | e0733e56508b5ad702154f51cb487aa12b82bbed /vcl/inc/salbmp.hxx | |
parent | 209951a8ae71ae38d57457a5a85005be8f46dcdf (diff) |
fix: buffer was released before getting checksum.
g
Conflicts:
vcl/inc/salbmp.hxx
Change-Id: I57d1e4b8e4909ce0b82c9e61ca271768cc73cd8b
Diffstat (limited to 'vcl/inc/salbmp.hxx')
-rw-r--r-- | vcl/inc/salbmp.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/salbmp.hxx b/vcl/inc/salbmp.hxx index f8e68f428db3..0815aeebc985 100644 --- a/vcl/inc/salbmp.hxx +++ b/vcl/inc/salbmp.hxx @@ -95,8 +95,8 @@ protected: BitmapBuffer* pBuf = pThis->AcquireBuffer(BITMAP_READ_ACCESS); if (pBuf) { - pThis->ReleaseBuffer(pBuf, BITMAP_READ_ACCESS); nCrc = vcl_get_checksum(0, pBuf->mpBits, pBuf->mnScanlineSize * pBuf->mnHeight); + pThis->ReleaseBuffer(pBuf, BITMAP_READ_ACCESS); pThis->maChecksum = nCrc; pThis->mbChecksumValid = true; } |