summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-16 10:04:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-16 12:20:11 +0200
commitb36ea44dcbdb862b0ac6e6cdaf27225b43dc0c7e (patch)
tree0b494273b223dd9ce2adc63e51b67bf1a58b5db7 /vcl/headless
parentd9420a64fbb288020d33b681f40a858db49afca7 (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.cxx4
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& )