summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-20 23:08:41 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:06:13 +0100
commitc612c3b0aed9ad7f7f42b4313f821b71995ead15 (patch)
treef6c673bccab1a0a6391315fde5966541eaf55d96 /starmath
parenta8dc965511f5f8e276eb4797ac0c37479907a079 (diff)
protect more printer code-paths.
Change-Id: Ic5bc5c3325b460cba0d95484454c9bb826684890
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/unomodel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 7956ce2d438d..f9752e89292b 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -642,7 +642,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
SfxItemSet *pItemSet = new SfxItemSet( pDocSh->GetPool(), nRange );
SmModule *pp = SM_MOD();
pp->GetConfig()->ConfigToItemSet(*pItemSet);
- SfxPrinter *pPrinter = SfxPrinter::Create ( aStream, pItemSet );
+ VclPtr<SfxPrinter> pPrinter = SfxPrinter::Create ( aStream, pItemSet );
pDocSh->SetPrinter( pPrinter );
}