diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwppagelayout.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwppagelayout.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx index d5b22e58d834..08b76150a4ff 100644 --- a/lotuswordpro/source/filter/lwppagelayout.cxx +++ b/lotuswordpro/source/filter/lwppagelayout.cxx @@ -640,12 +640,12 @@ void LwpPageLayout::GetWidthAndHeight(double& fWidth, double& fHeight) if(GetUsePrinterSettings()) { //replaced by printer paper size - Printer aPrinter; - bool bScreen = aPrinter.IsDisplayPrinter(); + ScopedVclPtrInstance< Printer > pPrinter; + bool bScreen = pPrinter->IsDisplayPrinter(); if (!bScreen)//Printer available { - Size aPaperSize = aPrinter.GetPaperSize(); - aPaperSize = aPrinter.PixelToLogic( aPaperSize, MapMode( MAP_10TH_MM ) ); + Size aPaperSize = pPrinter->GetPaperSize(); + aPaperSize = pPrinter->PixelToLogic( aPaperSize, MapMode( MAP_10TH_MM ) ); fWidth = static_cast<double>(aPaperSize.Width())/100; //cm unit fHeight = static_cast<double>(aPaperSize.Height())/100; } |