From c612c3b0aed9ad7f7f42b4313f821b71995ead15 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 20 Mar 2015 23:08:41 +0000 Subject: protect more printer code-paths. Change-Id: Ic5bc5c3325b460cba0d95484454c9bb826684890 --- sw/source/uibase/uno/SwXDocumentSettings.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/uno') diff --git a/sw/source/uibase/uno/SwXDocumentSettings.cxx b/sw/source/uibase/uno/SwXDocumentSettings.cxx index ce19d650523b..6b947227cf77 100644 --- a/sw/source/uibase/uno/SwXDocumentSettings.cxx +++ b/sw/source/uibase/uno/SwXDocumentSettings.cxx @@ -425,7 +425,7 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf 0 }; SfxItemSet *pItemSet = new SfxItemSet( mpDoc->GetAttrPool(), nRange ); - SfxPrinter *pPrinter = SfxPrinter::Create ( aStream, pItemSet ); + VclPtr pPrinter = SfxPrinter::Create ( aStream, pItemSet ); // set printer only once; in _postSetValues mpPrinter.disposeAndClear(); -- cgit v1.2.3