diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-23 22:17:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-23 22:17:38 +0200 |
commit | a401cf33b2e05d1778faef8e4fdd1043d3eb9b2e (patch) | |
tree | 2ac230e669c3c6907e557b5d9b9423bb620fe171 | |
parent | e2582341af9f6b756e5d95c8ddd99652b62d1a41 (diff) |
loplugin:defaultparams
Change-Id: I0db404b84f62db9636fa30f9af1b9cc0d70a2624
-rw-r--r-- | vcl/osx/printaccessoryview.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm index 3958bb1c63d9..7f7c82699189 100644 --- a/vcl/osx/printaccessoryview.mm +++ b/vcl/osx/printaccessoryview.mm @@ -298,14 +298,14 @@ class ControllerProperties if( i_nPage >= 0 && nPages > i_nPage ) { GDIMetaFile aMtf; - PrinterController::PageSize aPageSize( mpController->getFilteredPageFile( i_nPage, aMtf, false ) ); + PrinterController::PageSize aPageSize( mpController->getFilteredPageFile( i_nPage, aMtf ) ); auto aDev(VclPtr<VirtualDevice>::Create()); if( mpController->getPrinter()->GetPrinterOptions().IsConvertToGreyscales() ) aDev->SetDrawMode( aDev->GetDrawMode() | ( DrawModeFlags::GrayLine | DrawModeFlags::GrayFill | DrawModeFlags::GrayText | DrawModeFlags::GrayBitmap | DrawModeFlags::GrayGradient ) ); // see salprn.cxx, currently we pretend to be a 720dpi device on printers aDev->SetReferenceDevice( 720, 720 ); - aDev->EnableOutput( TRUE ); + aDev->EnableOutput(); Size aLogicSize( aDev->PixelToLogic( aPixelSize, MapMode( MAP_100TH_MM ) ) ); double fScaleX = double(aLogicSize.Width())/double(aPageSize.aSize.Width()); double fScaleY = double(aLogicSize.Height())/double(aPageSize.aSize.Height()); |