[Libreoffice-commits] core.git: vcl/osx

Stephan Bergmann sbergman at redhat.com
Sun Aug 23 13:17:58 PDT 2015


 vcl/osx/printaccessoryview.mm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a401cf33b2e05d1778faef8e4fdd1043d3eb9b2e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Aug 23 22:17:18 2015 +0200

    loplugin:defaultparams
    
    Change-Id: I0db404b84f62db9636fa30f9af1b9cc0d70a2624

diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index 3958bb1..7f7c826 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());


More information about the Libreoffice-commits mailing list