diff options
author | Patrick Luby <plubius@libreoffice.org> | 2023-12-23 17:25:54 -0500 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-12-24 16:59:13 +0100 |
commit | df08a291c4aea3e777f786c65048b03b4a13dbdb (patch) | |
tree | fa457a96aa2e2a97ead0598bda9df671ad5e67c3 /vcl | |
parent | 627d98a64164d117f4fbf8e3055dd2b14d9d7ab6 (diff) |
tdf#158807 Call UpdatePaletteForNewColor with rReplaceColor parameter
Change-Id: Id9d55600c69e84f7d7ffdd9cfbf4e1b3985b79c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161260
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Patrick Luby <plubius@libreoffice.org>
(cherry picked from commit 0e788111f13992f8323d691f2daf98e43cc7bdf8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161224
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/bitmappaint.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/bitmap/bitmappaint.cxx b/vcl/source/bitmap/bitmappaint.cxx index fa1e8486c2e3..cc3674ad3123 100644 --- a/vcl/source/bitmap/bitmappaint.cxx +++ b/vcl/source/bitmap/bitmappaint.cxx @@ -919,8 +919,8 @@ bool Bitmap::ReplaceMask(const AlphaMask& rMask, const Color& rReplaceColor) const sal_uInt16 nActColors = pAcc->GetPaletteEntryCount(); const sal_uInt16 nMaxColors = 1 << pAcc->GetBitCount(); - aReplace - = UpdatePaletteForNewColor(pAcc, nActColors, nMaxColors, nHeight, nWidth, aReplace); + aReplace = UpdatePaletteForNewColor(pAcc, nActColors, nMaxColors, nHeight, nWidth, + BitmapColor(rReplaceColor)); } else aReplace = rReplaceColor; |