diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2018-08-16 14:32:19 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2018-08-16 16:44:09 +0200 |
commit | 308fbd8cdf9ce0fc3921b6c4c58707609b486fb9 (patch) | |
tree | 4d03bf9425010edcc44fb5657cbeee1fcbf5f1f7 /oox | |
parent | 61c713bf93a1c585730b97265e2ba7a5a4d09d1d (diff) |
tdf#118385 Avoid crash on loading document
Change-Id: Ifb18fee79667a5d0284407e84877b0d4d89536d9
Reviewed-on: https://gerrit.libreoffice.org/59173
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/vml/vmlformatting.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx index d2132c0bc8b7..99c95eab372e 100644 --- a/oox/source/vml/vmlformatting.cxx +++ b/oox/source/vml/vmlformatting.cxx @@ -961,7 +961,7 @@ void TextpathModel::pushToPropMap(ShapePropertyMap& rPropMap, const uno::Referen if (!moTrim.has() || !moTrim.get()) { OUString sText = moString.get(); - VclPtr<VirtualDevice> pDevice = VclPtr<VirtualDevice>::Create(); + ScopedVclPtrInstance<VirtualDevice> pDevice; vcl::Font aFont = pDevice->GetFont(); aFont.SetFamilyName(sFont); aFont.SetFontSize(Size(0, 96)); |