diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-16 10:04:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-16 12:20:11 +0200 |
commit | b36ea44dcbdb862b0ac6e6cdaf27225b43dc0c7e (patch) | |
tree | 0b494273b223dd9ce2adc63e51b67bf1a58b5db7 /vcl/headless | |
parent | d9420a64fbb288020d33b681f40a858db49afca7 (diff) |
push logic from ImpBitmap::ImplReleaseBuffer down
in preparation for removing ImpBitmap
Change-Id: Icae48c081d821518103d08a7b62bcb4d64654c35
Reviewed-on: https://gerrit.libreoffice.org/52939
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpbmp.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx index 28b64508bd81..3228e03bf036 100644 --- a/vcl/headless/svpbmp.cxx +++ b/vcl/headless/svpbmp.cxx @@ -271,8 +271,10 @@ BitmapBuffer* SvpSalBitmap::AcquireBuffer(BitmapAccessMode) return mpDIB; } -void SvpSalBitmap::ReleaseBuffer(BitmapBuffer*, BitmapAccessMode) +void SvpSalBitmap::ReleaseBuffer(BitmapBuffer*, BitmapAccessMode nMode) { + if( nMode == BitmapAccessMode::Write ) + InvalidateChecksum(); } bool SvpSalBitmap::GetSystemData( BitmapSystemData& ) |