BitmapEx->Bitmap in LwpBackgroundStuff

now that Bitmap supports transparency

Change-Id: I03dd8533e877a914284c6e905619892e3f2246d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190597
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2025-09-04 21:12:17 +02:00
parent a59ef851c3
commit f22efef769
@@ -145,7 +145,7 @@ std::unique_ptr<XFBGImage> LwpBackgroundStuff::GetFillPattern()
// transfer image data from XOBitmap->SvStream->BYTE-Array
SvMemoryStream aPicMemStream;
aXOBitmap.Array2Bitmap();
WriteDIB(BitmapEx(aXOBitmap.GetBitmap()), aPicMemStream);
WriteDIB(aXOBitmap.GetBitmap(), aPicMemStream);
sal_uInt32 nSize = aPicMemStream.GetEndOfData();
std::unique_ptr<sal_uInt8[]> pImageBuff(new sal_uInt8[nSize]);
memcpy(pImageBuff.get(), aPicMemStream.GetData(), nSize);