summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-01 16:37:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-21 08:19:31 +0200
commitec665e3e898e733c9f602b21046079e569b58568 (patch)
treed557ec77afb9c7a19c4edf46325a403ef1a05d10 /toolkit
parent30d5569dcf46ddd84a85eb9bd38e18e59cfd2c9d (diff)
use more OutputDevice::GetBitmapEx
instead of GetBitmap Change-Id: Ib43cfaf3c91968d623e5a24f44539368da28d36f Reviewed-on: https://gerrit.libreoffice.org/55190 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxdevice.cxx4
1 files changed, 2 insertions, 2 deletions
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;