summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-19 14:58:31 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 12:17:38 +0100
commite1b8e36a2693102664b8afe16ec321ef63e234aa (patch)
tree921b7518b6dcae8de90311f5242a328fda6193f6 /lotuswordpro
parenteac22a0630bcf3780142f64a022fa432e13bb7e1 (diff)
Fix OutputDevice members / stack allocation: desktop, sfx2, lwp.
Change-Id: I5563cfa35142f088533ae998d087dec669a13287
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwppagelayout.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx
index d5b22e58d834..4464af3b25a9 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();
+ ScopedVclPtr<Printer> pPrinter( new Printer() );
+ 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;
}