diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-29 21:22:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-29 21:23:29 +0000 |
commit | e4f7e197f73bee4f9546528271f63a36d9ea0c89 (patch) | |
tree | 216746c54141e395c7f156a96e21ab9f82b0a81e /filter | |
parent | a48c22e1bfc2019a6c2a35caaa09d2319b783078 (diff) |
we don't need read access, only write
Change-Id: If9720a402ce360fd691a4ce83f267e2d19e19652
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/ipict/ipict.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx index d948d50ac399..aa4af80e9353 100644 --- a/filter/source/graphicfilter/ipict/ipict.cxx +++ b/filter/source/graphicfilter/ipict/ipict.cxx @@ -304,8 +304,6 @@ public: { \ if ( pAcc ) \ Bitmap::ReleaseAccess( pAcc ); \ - if ( pReadAcc ) \ - Bitmap::ReleaseAccess( pReadAcc ); \ return 0xffffffff; \ } @@ -705,7 +703,6 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo { Bitmap aBitmap; BitmapWriteAccess* pAcc = nullptr; - BitmapReadAccess* pReadAcc = nullptr; sal_uInt16 nColTabSize; sal_uInt16 nRowBytes, nBndX, nBndY, nWidth, nHeight, nPackType, nPixelSize, nCmpCount, nCmpSize; @@ -1018,8 +1015,6 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo size_t nCount; sal_uLong nSrcBitsPos; BitmapColor aBitmapColor; - if ( ( pReadAcc = aBitmap.AcquireReadAccess() ) == nullptr ) - BITMAPERROR; if ( nRowBytes != 4*nWidth ) BITMAPERROR; @@ -1126,8 +1121,6 @@ sal_uLong PictReader::ReadPixMapEtc( Bitmap &rBitmap, bool bBaseAddr, bool bColo } else BITMAPERROR; - if ( pReadAcc ) - Bitmap::ReleaseAccess( pReadAcc ); Bitmap::ReleaseAccess( pAcc ); rBitmap = aBitmap; return nDataSize; |