summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/fntcache.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/inc/fntcache.hxx')
-rw-r--r--sw/source/core/inc/fntcache.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/inc/fntcache.hxx b/sw/source/core/inc/fntcache.hxx
index dfc4c7c2aa34..6755965d0f91 100644
--- a/sw/source/core/inc/fntcache.hxx
+++ b/sw/source/core/inc/fntcache.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SW_SOURCE_CORE_INC_FNTCACHE_HXX
#include <vcl/font.hxx>
+#include <vcl/vclptr.hxx>
#include <tools/mempool.hxx>
#include "swtypes.hxx"
#include "swcache.hxx"
@@ -63,7 +64,7 @@ class SwFntObj : public SwCacheObj
vcl::Font aFont;
vcl::Font *pScrFont;
vcl::Font *pPrtFont;
- OutputDevice* pPrinter;
+ VclPtr<OutputDevice> pPrinter;
sal_uInt16 nGuessedLeading;
sal_uInt16 nExtLeading;
sal_uInt16 nScrAscent;
@@ -77,7 +78,7 @@ class SwFntObj : public SwCacheObj
static long nPixWidth;
static MapMode *pPixMap;
- static OutputDevice *pPixOut;
+ static VclPtr<OutputDevice> pPixOut;
void calcLinePos(SwDrawTextInfo& rInf, Point& aStart, Point& aEnd, sal_Int32 nStart,
sal_Int32 nWrLen, sal_Int32 nCnt, const bool bSwitchH2V, const bool bSwitchL2R,