From ec665e3e898e733c9f602b21046079e569b58568 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 1 Jun 2018 16:37:57 +0200 Subject: use more OutputDevice::GetBitmapEx instead of GetBitmap Change-Id: Ib43cfaf3c91968d623e5a24f44539368da28d36f Reviewed-on: https://gerrit.libreoffice.org/55190 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/source/awt/vclxdevice.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolkit/source') diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx index b6c3fb7f5c05..5f0cc09cb381 100644 --- a/toolkit/source/awt/vclxdevice.cxx +++ b/toolkit/source/awt/vclxdevice.cxx @@ -194,10 +194,10 @@ css::uno::Reference< css::awt::XBitmap > VCLXDevice::createBitmap( sal_Int32 nX, css::uno::Reference< css::awt::XBitmap > xBmp; if( mpOutputDevice ) { - Bitmap aBmp = mpOutputDevice->GetBitmap( Point( nX, nY ), Size( nWidth, nHeight ) ); + BitmapEx aBmp = mpOutputDevice->GetBitmapEx( Point( nX, nY ), Size( nWidth, nHeight ) ); VCLXBitmap* pBmp = new VCLXBitmap; - pBmp->SetBitmap( BitmapEx( aBmp ) ); + pBmp->SetBitmap( aBmp ); xBmp = pBmp; } return xBmp; -- cgit