vcl/source/bitmap/bitmap.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 937b5e61975a8cde1cd200e54fbe540f2122e237 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Jul 30 09:48:41 2025 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Jul 30 12:00:00 2025 +0200 fix Bitmap(BitmapEx) constructor ever since commit 80fbcc1ebed62dd4723cbfc1c20bfc010e0b4fed Author: Noel Grandin <noelgran...@gmail.com> Date: Mon Jul 28 20:40:20 2025 +0200 BitmapEx->Bitmap in IconView Change-Id: I00e7a343806e304ce771608e37abfcc648a86933 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188583 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx index 4dddda306ca7..af7dd2c84c6a 100644 --- a/vcl/source/bitmap/bitmap.cxx +++ b/vcl/source/bitmap/bitmap.cxx @@ -141,9 +141,10 @@ Bitmap::Bitmap(const BitmapEx& rBitmapEx) else { ScopedVclPtrInstance<VirtualDevice> xDev(DeviceFormat::WITH_ALPHA); - xDev->SetOutputSize(maPrefSize); - xDev->DrawBitmapEx(Point(0, 0), maPrefSize, rBitmapEx); - mxSalBmp = xDev->GetBitmap(Point(0,0), maPrefSize).mxSalBmp; + Size aPixelSize = rBitmapEx.GetSizePixel(); + xDev->SetOutputSize(aPixelSize); + xDev->DrawBitmapEx(Point(0, 0), aPixelSize, rBitmapEx); + mxSalBmp = xDev->GetBitmap(Point(0,0), aPixelSize).mxSalBmp; } }