diff options
Diffstat (limited to 'vcl/source/filter/wmf/emfwr.hxx')
-rw-r--r-- | vcl/source/filter/wmf/emfwr.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/filter/wmf/emfwr.hxx b/vcl/source/filter/wmf/emfwr.hxx index 5bf294a0e323..d037bdeb9d6c 100644 --- a/vcl/source/filter/wmf/emfwr.hxx +++ b/vcl/source/filter/wmf/emfwr.hxx @@ -33,7 +33,7 @@ class EMFWriter { private: - VirtualDevice maVDev; + ScopedVclPtr<VirtualDevice> maVDev; MapMode maDestMapMode; SvStream& m_rStm; bool* mpHandlesUsed; @@ -90,7 +90,8 @@ private: public: EMFWriter(SvStream &rStream) - : m_rStm(rStream) + : maVDev( VclPtr<VirtualDevice>::Create() ) + , m_rStm(rStream) , mpHandlesUsed(NULL) , mnHandleCount(0) , mnRecordCount(0) |