vcl/source/bitmap/bitmap.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1f3a67641f1ed03ae9b468724dd3c29e4f9584c8
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sun Aug 3 23:16:06 2025 +0200
Commit:     Noel Grandin <noelgran...@gmail.com>
CommitDate: Mon Aug 4 10:08:22 2025 +0200

    fix bug in Bitmap(const BitmapEx&) constructor
    
    otherwise alpha values will not be properly copied
    
    Change-Id: Ic8fe9f90e9d8827bcc85e87002765340241211ef
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188905
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx
index c6c04d48229d..f2a02010300c 100644
--- a/vcl/source/bitmap/bitmap.cxx
+++ b/vcl/source/bitmap/bitmap.cxx
@@ -142,7 +142,7 @@ Bitmap::Bitmap(const BitmapEx& rBitmapEx)
     {
         ScopedVclPtrInstance<VirtualDevice> xDev(DeviceFormat::WITH_ALPHA);
         Size aPixelSize = rBitmapEx.GetSizePixel();
-        xDev->SetOutputSize(aPixelSize);
+        xDev->SetOutputSizePixel(aPixelSize, /*bErase*/true, 
/*bAlphaMaskTransparent*/true);
         xDev->DrawBitmapEx(Point(0, 0), aPixelSize, rBitmapEx);
         mxSalBmp = xDev->GetBitmap(Point(0,0), aPixelSize).mxSalBmp;
     }

Reply via email to