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/qt5 | |
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/qt5')
-rw-r--r-- | vcl/qt5/Qt5Bitmap.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Bitmap.cxx b/vcl/qt5/Qt5Bitmap.cxx index f14479fd9419..f5c943d80877 100644 --- a/vcl/qt5/Qt5Bitmap.cxx +++ b/vcl/qt5/Qt5Bitmap.cxx @@ -228,6 +228,8 @@ void Qt5Bitmap::ReleaseBuffer(BitmapBuffer* pBuffer, BitmapAccessMode /*nMode*/) m_pImage->setColorTable(aColorTable); } delete pBuffer; + if (nMode == BitmapAccessMode::Write) + InvalidateChecksum(); } bool Qt5Bitmap::GetSystemData(BitmapSystemData& /*rData*/) { return false; } |