summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/fntcache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/txtnode/fntcache.cxx')
-rw-r--r--sw/source/core/txtnode/fntcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 508f5ff81cfc..5e3afe0fce96 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -611,7 +611,7 @@ void SwFntObj::GuessLeading( const SwViewShell&
#if defined(_WIN32)
OutputDevice *pWin = rSh.GetWin() ?
- rSh.GetWin() :
+ rSh.GetWin()->GetOutDev() :
Application::GetDefaultDevice();
if ( pWin )
{
@@ -876,7 +876,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
OSL_ENSURE( rInf.GetShell(), "SwFntObj::DrawText without shell" );
OutputDevice& rRefDev = rInf.GetShell()->GetRefDev();
- OutputDevice* pWin = rInf.GetShell()->GetWin();
+ vcl::Window* pWin = rInf.GetShell()->GetWin();
// true if pOut is the printer and the printer has been used for formatting
const bool bPrt = OUTDEV_PRINTER == rInf.GetOut().GetOutDevType() &&