diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 12:29:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 15:50:13 +0200 |
commit | 6b736710c08a272c8fd1b741c380032363b527b4 (patch) | |
tree | 9b6accb1d16d959f782191c67d1b6a081365f7c8 /sd/source/ui/tools | |
parent | 44718954e78c88442ff6654d3e13ba69188e2d38 (diff) |
use BitmapEx in PreviewRenderer::ScaleBitmap
Change-Id: I9f94c9cceb3c1828b9b1d21ac064dae2c12565c8
Reviewed-on: https://gerrit.libreoffice.org/75214
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/tools')
-rw-r--r-- | sd/source/ui/tools/PreviewRenderer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx index b3eb95402df3..8f5d2dd73609 100644 --- a/sd/source/ui/tools/PreviewRenderer.cxx +++ b/sd/source/ui/tools/PreviewRenderer.cxx @@ -451,12 +451,12 @@ Image PreviewRenderer::ScaleBitmap ( mpPreviewDevice->DrawRect (::tools::Rectangle(Point(0,0), aFrameSize)); // Paint the bitmap scaled to the desired width. - BitmapEx aScaledBitmap (rBitmapEx.GetBitmap()); + BitmapEx aScaledBitmap(rBitmapEx); aScaledBitmap.Scale (aPreviewSize, BmpScaleFlag::BestQuality); - mpPreviewDevice->DrawBitmap ( + mpPreviewDevice->DrawBitmapEx ( Point(1,1), aPreviewSize, - aScaledBitmap.GetBitmap()); + aScaledBitmap); // Get the resulting bitmap. aPreview = Image(mpPreviewDevice->GetBitmapEx(Point(0,0), aFrameSize)); |