diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 12:15:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 21:29:51 +0200 |
commit | c6ec8248adea412770e61db13885f6d9fd09099c (patch) | |
tree | e45a8fbf8754df61314a106b762e0bfa9666ebdd /basctl | |
parent | 15148b351a6cb79dd6826d0b44a33fd4fb103e60 (diff) |
use DrawBitmapEx in DlgEditor::Print
Change-Id: Ie61c63f46d037fddd6ce1d0c260c98998d6de71c
Reviewed-on: https://gerrit.libreoffice.org/75210
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index 045640691e6f..c318ba8739d7 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -1170,8 +1170,8 @@ void DlgEditor::Print( Printer* pPrinter, const OUString& rTitle ) // not wor lcl_PrintHeader( pPrinter, rTitle ); - Bitmap aDlg; - Size aBmpSz( pPrinter->PixelToLogic( aDlg.GetSizePixel() ) ); + BitmapEx aDlgEx; + Size aBmpSz( pPrinter->PixelToLogic( aDlgEx.GetSizePixel() ) ); double nPaperSzWidth = aPaperSz.Width(); double nPaperSzHeight = aPaperSz.Height(); double nBmpSzWidth = aBmpSz.Width(); @@ -1198,7 +1198,7 @@ void DlgEditor::Print( Printer* pPrinter, const OUString& rTitle ) // not wor aPosOffs.AdjustX(Print::nLeftMargin ); aPosOffs.AdjustY(Print::nTopMargin ); - pPrinter->DrawBitmap( aPosOffs, aOutputSz, aDlg ); + pPrinter->DrawBitmapEx( aPosOffs, aOutputSz, aDlgEx ); pPrinter->SetMapMode( aOldMap ); pPrinter->SetFont( aOldFont ); |