[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Mon Jul 10 13:12:39 UTC 2017
vcl/source/outdev/bitmap.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b9b492e86349507d6c617430435df1c58a0b4994
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Jul 10 10:49:17 2017 +0100
crashtesting assert on export to ods from novell835001-2.xlsx
this is a problem since
commit bea1dc5f8d17c1011cdfab1ff540f3e4b3a4d1bb
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jul 7 13:59:27 2017 +0100
Resolves: rhbz#1467512 mask not created as 1 bit depth
Change-Id: I3c9fd81bf7413f5decf2b55a660f028c0613c3b3
Reviewed-on: https://gerrit.libreoffice.org/39745
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index 4ae3c84d37ce..122ddde80a99 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -1465,8 +1465,8 @@ Bitmap OutputDevice::BlendBitmapWithAlpha(
const long nMapX = pMapX[ nX ];
aDstCol = AlphaBlend( nX, nY, nMapX, nMapY, pP, pA, pB.get(), pAlphaW.get(), nResAlpha );
- pB->SetPixel( nY, nX, aDstCol );
- pAlphaW->SetPixel( nY, nX, Color(255L-nResAlpha, 255L-nResAlpha, 255L-nResAlpha) );
+ pB->SetPixel(nY, nX, pB->GetBestMatchingColor(aDstCol));
+ pAlphaW->SetPixel(nY, nX, pB->GetBestMatchingColor(Color(255L-nResAlpha, 255L-nResAlpha, 255L-nResAlpha)));
}
}
}
More information about the Libreoffice-commits
mailing list