diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-16 21:46:08 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 11:32:56 +0100 |
commit | 359cbefc23d6283f32ca428c98de8aec4a773fa2 (patch) | |
tree | e8b63d59bfbce805de902c75a483511bb9c59d6b /sd/source | |
parent | ad194534994a50f691c4ea15123b215cb93cc802 (diff) |
more toolkit API adaptations.
Change-Id: I55e3153bf38af376fe367d575ceb19f5b4405e1c
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 22a4e840be6c..20b2df7c70f0 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1201,8 +1201,9 @@ public: if (aDev >>= xRenderDevice) { VCLXDevice* pDevice = VCLXDevice::GetImplementation(xRenderDevice); - OutputDevice* pOut = pDevice ? pDevice->GetOutputDevice() : NULL; - mpPrinter = dynamic_cast<Printer*>(pOut); + VclPtr< OutputDevice > pOut = pDevice ? pDevice->GetOutputDevice() + : VclPtr< OutputDevice >(); + mpPrinter = dynamic_cast<Printer*>(pOut.get()); Size aPageSizePixel = mpPrinter ? mpPrinter->GetPaperSizePixel() : Size(); if( aPageSizePixel != maPrinterPageSizePixel ) { |